ref: 75a67cfc323b4b59ac9bc6fa5ab5539a29d11a02
parent: feb9792cb10cf3e5c1c12bf0edc7b20ddbfc5ffb
author: uriel <[email protected]>
date: Thu Aug 28 20:57:40 EDT 2008
Handle shared pub/ .tpl properly
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -185,6 +185,7 @@
fn select_handler {
+dprint $body
if (test -f $body.md) {
if (! ~ $#inBlog 0)
set_handler blog_post_handler $body.md
@@ -209,8 +210,8 @@
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