Index: /trunk/themes/default/index.tmpl
===================================================================
--- /trunk/themes/default/index.tmpl (revision 74)
+++ /trunk/themes/default/index.tmpl (revision 74)
@@ -0,0 +1,160 @@
+
+
+
+
+
+ /style.css" title="Default">
+
+
+
+ ">
+
+
+
+
+
+
+
+
+
+
+ by ">
+
+
+
+
+
+
+
+ -
+ Tags:
+
+ ">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/images/asterisk-red.gif" style="height: 20px; padding-right: 5px;">
+
+
+
+
+
/images/asterisk-green.gif" style="height: 20px; padding-right: 5px;">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: /trunk/themes/default/admin.tmpl
===================================================================
--- /trunk/themes/default/admin.tmpl (revision 74)
+++ /trunk/themes/default/admin.tmpl (revision 74)
@@ -0,0 +1,107 @@
+
+
+
+
+ /style.css" title="Default">
+
+
+
+
+
+
+
+
+
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 @@
-
-
-
-
-
- /style.css" title="Default">
-
-
-
- ">
-
-
-
-
-
-
-
-
-
-
- by ">
-
-
-
-
-
-
-
- -
- Tags:
-
- ">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/images/asterisk-red.gif" style="height: 20px; padding-right: 5px;">
-
-
-
-
-
/images/asterisk-green.gif" style="height: 20px; padding-right: 5px;">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: /unk/templates/admin.html
===================================================================
--- /trunk/templates/admin.html (revision 69)
+++ (revision )
@@ -1,107 +1,0 @@
-
-
-
-
- /style.css" title="Default">
-
-
-
-
-
-
-
-
-
Comments
+at ,
+
+ ">
+
+
+
+ wrote in to say...
+
++
+
+