From: Tara L Andrews Date: Sat, 29 Oct 2011 20:19:02 +0000 (+0200) Subject: wrapperize the HTML templates X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2Fstemmatology.git;a=commitdiff_plain;h=4fb612812b93e2dcdadea876ee3b508c3a897974 wrapperize the HTML templates --- diff --git a/TreeOfTexts/lib/TreeOfTexts/View/TT.pm b/TreeOfTexts/lib/TreeOfTexts/View/TT.pm index 1f43118..af30bf5 100644 --- a/TreeOfTexts/lib/TreeOfTexts/View/TT.pm +++ b/TreeOfTexts/lib/TreeOfTexts/View/TT.pm @@ -10,6 +10,7 @@ __PACKAGE__->config( INCLUDE_PATH => [ TreeOfTexts->path_to( 'root', 'src' ), ], + WRAPPER => 'wrapper.tt', render_die => 1, ); diff --git a/TreeOfTexts/root/src/style.tt2 b/TreeOfTexts/root/css/style.css similarity index 100% rename from TreeOfTexts/root/src/style.tt2 rename to TreeOfTexts/root/css/style.css diff --git a/TreeOfTexts/root/src/frontpage.tt b/TreeOfTexts/root/src/frontpage.tt index 0444fce..7ba54d2 100644 --- a/TreeOfTexts/root/src/frontpage.tt +++ b/TreeOfTexts/root/src/frontpage.tt @@ -1,12 +1,6 @@ - - - - - - [% INCLUDE style.tt2 %] - - -

Stexaminer

+[% BLOCK js %] +[% END %] +

Choose a text to examine

- - diff --git a/TreeOfTexts/root/src/index.tt b/TreeOfTexts/root/src/index.tt index a82da65..b06a41d 100644 --- a/TreeOfTexts/root/src/index.tt +++ b/TreeOfTexts/root/src/index.tt @@ -1,31 +1,8 @@ - - - - +[% BLOCK js %] - - [% INCLUDE style.tt2 %] - - -

Stexaminer

-

[% text_title %]

-
-

Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma. [% conflict %] readings conflicted with the stemma.

-
-
- [% svg %] -
-
- -[% FOREACH row IN variants -%] -[% INCLUDE variantrow %] -[% END -%] -
-
- - +[% END %] [% BLOCK variantrow -%] [% SET rowclass = 'class="genealogical"' IF row.genealogical -%] @@ -41,4 +18,20 @@ [% END -%] -[% END -%] \ No newline at end of file +[% END -%] + +

[% text_title %]

+
+

Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma. [% conflict %] readings conflicted with the stemma.

+
+
+ [% svg %] +
+
+ +[% FOREACH row IN variants -%] +[% INCLUDE variantrow %] +[% END -%] +
+
+ diff --git a/TreeOfTexts/root/src/wrapper.tt b/TreeOfTexts/root/src/wrapper.tt new file mode 100644 index 0000000..8b56647 --- /dev/null +++ b/TreeOfTexts/root/src/wrapper.tt @@ -0,0 +1,14 @@ + + + + + + + [% INCLUDE js %] + Stexaminer + + +

Stexaminer

+[% content %] + +