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;