Index: /trunk/themes/default/index.tmpl =================================================================== --- /trunk/themes/default/index.tmpl (revision 74) +++ /trunk/themes/default/index.tmpl (revision 74) @@ -0,0 +1,160 @@ + + + + + <TMPL_VAR name="title"> + /style.css" title="Default"> + + + + "> + + + +
+ +
+ +
+

+ //"> + +

+

+ by "> +

+
+ + +

+ //"> + Read the rest of this story... +

+
+
+ + +
+ +

Comments

+ +
at , + + "> + + + + wrote in to say... +
+

+ +

+
+
+
+
+
+ + + +

+ /images/asterisk-red.gif" style="height: 20px; padding-right: 5px;"> +

+
+ +

+ /images/asterisk-green.gif" style="height: 20px; padding-right: 5px;"> +

+
+ + + +
+

Add a comment:

+
+

">   name

+

">   email

+

">   url

+

max length chars
+ +

+ +

+ "> + +
+
+
+ + +
+ +
+ + + + + + + + Index: /trunk/themes/default/admin.tmpl =================================================================== --- /trunk/themes/default/admin.tmpl (revision 74) +++ /trunk/themes/default/admin.tmpl (revision 74) @@ -0,0 +1,107 @@ + + + + <TMPL_VAR name="blog_title"> + /style.css" title="Default"> + + + +
+ + + +

+ /images/asterisk-red.gif" style="height: 20px; padding-right: 5px;"> +

+
+ + + +
+

+

+
+
+
+ + + +
+

">   title

+

">   uri

+

">   tags (e.g. foo,bar,baz)

+

+

  

+ + + "> + +
+
+ + + + +

+ + ">/images/play.gif" alt="Publish"> + + /images/play-disabled.gif" alt="Publish"> + + ">/images/plus.gif" alt="Edit"> + + ">/images/draft.gif" alt="Draft"> + + /images/draft-disabled.gif" alt="Draft"> + + ">/images/delete.gif" alt="Delete">     + + //" target="_new"> + + + + + + + + + +   submitted by + on +

+
+
+ + + + +
+

+ ">/images/check.gif" alt="Publish"> + ">/images/delete.gif" alt="Delete"> +   comment in article   + //" target="_new"> +
+ submitted by + at +

+

+ "" +

+
+
+
+ +
+ + + Index: /trunk/Blogsum/Config.pm.dist =================================================================== --- /trunk/Blogsum/Config.pm.dist (revision 70) +++ /trunk/Blogsum/Config.pm.dist (revision 74) @@ -16,6 +16,4 @@ ########################### our $database = 'data/site.db'; -our $tmplfile_index = 'templates/index.html'; -our $tmplfile_admin = 'templates/admin.html'; our $blog_theme = 'default'; our $blog_title = 'example.com'; Index: /trunk/index.cgi =================================================================== --- /trunk/index.cgi (revision 73) +++ /trunk/index.cgi (revision 74) @@ -11,5 +11,4 @@ use Blogsum::Config; my $database = $Blogsum::Config::database; -my $tmplfile_index = $Blogsum::Config::tmplfile_index; my $blog_theme = $Blogsum::Config::blog_theme; my $blog_title = $Blogsum::Config::blog_title; @@ -35,5 +34,5 @@ my $cgi = CGI->new; my $dbh = DBI->connect("DBI:SQLite:dbname=$database", '', '', { RaiseError => 1 }) || die $DBI::errstr; -my $template = HTML::Template->new(filename => $tmplfile_index, die_on_bad_params => 0); +my $template = HTML::Template->new(filename => "themes/${blog_theme}/index.tmpl", die_on_bad_params => 0); if ($cgi->param('rss')) { output_rss(); Index: /trunk/admin.cgi =================================================================== --- /trunk/admin.cgi (revision 68) +++ /trunk/admin.cgi (revision 74) @@ -10,5 +10,4 @@ use Blogsum::Config; my $database = $Blogsum::Config::database; -my $tmplfile_admin = $Blogsum::Config::tmplfile_admin; my $blog_theme = $Blogsum::Config::blog_theme; my $blog_title = $Blogsum::Config::blog_title; @@ -20,5 +19,5 @@ my $cgi = CGI->new; my $dbh = DBI->connect("DBI:SQLite:dbname=$database", '', '', { RaiseError => 1 }) || die $DBI::errstr; -my $template = HTML::Template->new(filename => $tmplfile_admin, die_on_bad_params => 0); +my $template = HTML::Template->new(filename => "themes/${blog_theme}/admin.tmpl", die_on_bad_params => 0); $template->param( theme => $blog_theme ); my $view; Index: /unk/templates/index.html =================================================================== --- /trunk/templates/index.html (revision 73) +++ (revision ) @@ -1,160 +1,0 @@ - - - - - <TMPL_VAR name="title"> - /style.css" title="Default"> - - - - "> - - - -
- -
- -
-

- //"> - -

-

- by "> -

-
- - -

- //"> - Read the rest of this story... -

-
-
- - -
- -

Comments

- -
at , - - "> - - - - wrote in to say... -
-

- -

-
-
-
-
-
- - - -

- /images/asterisk-red.gif" style="height: 20px; padding-right: 5px;"> -

-
- -

- /images/asterisk-green.gif" style="height: 20px; padding-right: 5px;"> -

-
- - - -
-

Add a comment:

-
-

">   name

-

">   email

-

">   url

-

max length chars
- -

- -

- "> - -
-
-
- - -
- -
- - - - - - - - Index: /unk/templates/admin.html =================================================================== --- /trunk/templates/admin.html (revision 69) +++ (revision ) @@ -1,107 +1,0 @@ - - - - <TMPL_VAR name="blog_title"> - /style.css" title="Default"> - - - -
- - - -

- /images/asterisk-red.gif" style="height: 20px; padding-right: 5px;"> -

-
- - - -
-

-

-
-
-
- - - -
-

">   title

-

">   uri

-

">   tags (e.g. foo,bar,baz)

-

-

  

- - - "> - -
-
- - - - -

- - ">/images/play.gif" alt="Publish"> - - /images/play-disabled.gif" alt="Publish"> - - ">/images/plus.gif" alt="Edit"> - - ">/images/draft.gif" alt="Draft"> - - /images/draft-disabled.gif" alt="Draft"> - - ">/images/delete.gif" alt="Delete">     - - //" target="_new"> - - - - - - - - - -   submitted by - on -

-
-
- - - - -
-

- ">/images/check.gif" alt="Publish"> - ">/images/delete.gif" alt="Delete"> -   comment in article   - //" target="_new"> -
- submitted by - at -

-

- "" -

-
-
-
- -
- - -