Browse files

Build the constituency index page.

  • Loading branch information...
1 parent bb4edae commit 5af4c813bc263a6305bdd9ebc3c4cb8e34864cd4 @davorg committed Aug 17, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/build
View
6 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;

0 comments on commit 5af4c81

Please sign in to comment.