Skip to content

Commit

Permalink
Don't build the party pages
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 27, 2015
1 parent 3451bd8 commit 341fdc4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bin/build
Expand Up @@ -30,16 +30,16 @@ $tt->process('constituencies.tt', { constits => [ $sch->resultset('Constituency'
'c/index.html', {binmode => ':utf8'})
or die $tt->error;

foreach my $p ($sch->resultset('Party')->all) {
next unless $p->candidates->count;
$tt->process('party.tt', { p => $p }, 'p/' . $p->slugname . '.html',
{binmode => ':utf8'})
or die $tt->error;
}

$tt->process('parties.tt', { parties => [ $sch->resultset('Party')->all ] },
'p/index.html', {binmode => ':utf8'})
or die $tt->error;
#foreach my $p ($sch->resultset('Party')->all) {
# next unless $p->candidates->count;
# $tt->process('party.tt', { p => $p }, 'p/' . $p->slugname . '.html',
# {binmode => ':utf8'})
# or die $tt->error;
#}
#
#$tt->process('parties.tt', { parties => [ $sch->resultset('Party')->all ] },
# 'p/index.html', {binmode => ':utf8'})
# or die $tt->error;

for (qw[index about/index]) {
$tt->process("$_.tt", { }, "$_.html", { binmode => ':utf8' });
Expand Down

0 comments on commit 341fdc4

Please sign in to comment.