Permalink
Browse files

add a config option for which theme to use!

  • Loading branch information...
1 parent dfd186d commit 90827ab0686e3807da674280f5a63504533eec31 @jrockway committed Mar 25, 2007
Showing with 22 additions and 5 deletions.
  1. +3 −0 angerwhale.yml
  2. +8 −0 lib/Angerwhale.pm
  3. +11 −5 root/resources.yml
View
@@ -12,3 +12,6 @@ feeds: ~
# - title: "delicious"
# location: "http://del.icio.us/rss"
#max_feed_entries: 5
+
+# pick your theme, currently "legacy" or "phokus"
+theme: phokus
View
@@ -33,6 +33,14 @@ __PACKAGE__->config('revision_callback' =>
__PACKAGE__->config( { VERSION => $VERSION } );
__PACKAGE__->setup;
+
+# setup theme; CSS only for now
+my $theme = __PACKAGE__->config->{theme} || 'phokus';
+my $css = __PACKAGE__->config->{themes}{$theme}{css};
+die "Your theme is screwed up" if !ref $css;
+__PACKAGE__->config->{page_includes}{css} = $css;
+
+# kill debugging message
__PACKAGE__->log->disable('debug') if !__PACKAGE__->debug;
1;
View
@@ -19,7 +19,7 @@ cache:
View::Jemplate:
jemplate_dir: __path_to(root/jemplate)__
page_includes:
-# javascript is in base/static/*
+# javascript is in base/static/javascript
javascript:
- prototype.js
- builder.js
@@ -32,7 +32,13 @@ page_includes:
jemplates:
- logged_in_as.tt
- sidebar_feed.tt
-# css is in base/jemplate/*
- css:
- - phokus/phokus.css
- - common/syntax-dark.css
+theme: phokus
+themes:
+ phokus:
+ css:
+ - phokus/phokus.css
+ - common/syntax-dark.css
+ legacy:
+ css:
+ - legacy/style.css
+ - common/syntax-dark.css

0 comments on commit 90827ab

Please sign in to comment.