diff --git a/bin/build b/bin/build new file mode 100755 index 0000000000..a54377501e --- /dev/null +++ b/bin/build @@ -0,0 +1,28 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use 5.010; +use FindBin '$Bin'; +use Template; + +my $tt = Template->new({ + ABSOLUTE => 1, + INCLUDE_PATH => "$Bin/../ttlib", + OUTPUT_PATH => "$Bin/../c", +}); + +while () { + chomp; + my %c; + @c{qw[name list]} = split /:/; + + $tt->process('page.tt', { c => \%c }, "$c{list}.html") + or die $tt->error; +} + +__END__ +Tooting:tooting +Battersea:battersea +Mid Bedfordshire:mid_beds +Clacton:clacton diff --git a/c/battersea.html b/c/battersea.html new file mode 100644 index 0000000000..a2eba27866 --- /dev/null +++ b/c/battersea.html @@ -0,0 +1,87 @@ + + + + + + + + + TwittElection: Battersea + + + + + + + + + + + + + + + +
+
+

Battersea

+ + +
+
+ + + + + + + + + + + + + diff --git a/c/clacton.html b/c/clacton.html new file mode 100644 index 0000000000..1490fd75a5 --- /dev/null +++ b/c/clacton.html @@ -0,0 +1,87 @@ + + + + + + + + + TwittElection: Clacton + + + + + + + + + + + + + + + +
+
+

Clacton

+ + +
+
+ + + + + + + + + + + + + diff --git a/c/mid_beds.html b/c/mid_beds.html new file mode 100644 index 0000000000..f15cecbe41 --- /dev/null +++ b/c/mid_beds.html @@ -0,0 +1,87 @@ + + + + + + + + + TwittElection: Mid Bedfordshire + + + + + + + + + + + + + + + +
+
+

Mid Bedfordshire

+ + +
+
+ + + + + + + + + + + + + diff --git a/c/tooting.html b/c/tooting.html new file mode 100644 index 0000000000..d30911a381 --- /dev/null +++ b/c/tooting.html @@ -0,0 +1,87 @@ + + + + + + + + + TwittElection: Tooting + + + + + + + + + + + + + + + +
+
+

Tooting

+ + +
+
+ + + + + + + + + + + + + diff --git a/page.tt b/ttlib/page.tt similarity index 100% rename from page.tt rename to ttlib/page.tt