Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build the constituency index page.
  • Loading branch information
davorg committed Aug 17, 2014
1 parent bb4edae commit 5af4c81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/build
Expand Up @@ -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.