From 5af4c813bc263a6305bdd9ebc3c4cb8e34864cd4 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Sun, 17 Aug 2014 16:35:16 +0100 Subject: [PATCH] Build the constituency index page. --- bin/build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/build b/bin/build index 33bd20c719..9f11c8a723 100755 --- a/bin/build +++ b/bin/build @@ -24,7 +24,11 @@ my $tt = Template->new({ foreach my $c ($sch->resultset('Constituency')->all) { next unless $c->candidates->count; - $tt->process('page.tt', { c => $c }, $c->list_name . '.html', + $tt->process('constituency.tt', { c => $c }, $c->list_name . '.html', {binmode => ':utf8'}) or die $tt->error; } + +$tt->process('constituencies.tt', { constits => [ $sch->resultset('Constituency')->all ] }, + 'index.html', {binmode => ':utf8'}) + or die $tt->error;