commit 83183cd4ccf0aa5a0f73a27a6b3879d4497d4465
parent c1306c24d4d415f8141f8a3f20a10f78c48fbc53
Author: uriel@engel.se.cat-v.org <unknown>
Date: Fri, 29 Aug 2008 00:57:40 +0200
Handle shared pub/ .tpl properly
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/controller.rc b/bin/controller.rc
@@ -185,6 +185,7 @@ fn debug_handler {
fn select_handler {
+dprint $body
if (test -f $body.md) {
if (! ~ $#inBlog 0)
set_handler blog_post_handler $body.md
@@ -209,8 +210,8 @@ fn select_handler {
blogDirs = `{basename -d $body}
# Global tpl (eg sitemap.tpl)
- if not if (test -f pub/^$body^.tpl)
- set_handler tpl_handler pub/^$body^.tpl
+ if not if (test -f pub/^$uri^.tpl)
+ set_handler tpl_handler pub/^$uri^.tpl
if not if (test -f $body.txt)
set_handler txt_handler $body.txt