From 5d1c1b66cb30e46368cd1a7e874efa8067d7dd2b Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Mon, 28 Jul 2014 19:29:19 +0100 Subject: [PATCH] Moved stuff around a bit. Wrote a TT build program. --- bin/build | 28 +++++++++++++ c/battersea.html | 87 ++++++++++++++++++++++++++++++++++++++++ c/clacton.html | 87 ++++++++++++++++++++++++++++++++++++++++ c/mid_beds.html | 87 ++++++++++++++++++++++++++++++++++++++++ c/tooting.html | 87 ++++++++++++++++++++++++++++++++++++++++ page.tt => ttlib/page.tt | 0 6 files changed, 376 insertions(+) create mode 100755 bin/build create mode 100644 c/battersea.html create mode 100644 c/clacton.html create mode 100644 c/mid_beds.html create mode 100644 c/tooting.html rename page.tt => ttlib/page.tt (100%) 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