Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build the constituency index page.

  • Loading branch information...
commit 5af4c813bc263a6305bdd9ebc3c4cb8e34864cd4 1 parent bb4edae
@davorg authored
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.
Something went wrong with that request. Please try again.