diff --git a/bin/controller.rc b/bin/controller.rc index 184f130..a523dd0 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -93,6 +93,8 @@ fn genbody { cat $body | /bin/sed -i '0,/]*>/d;/<\/body>/,$d' if not if ( ~ $body */[bB]log/index */[bB]log//index && ~ $#blogDirs 0 ) blogDirs = `{basename -d $body} + if not if ( test -f pub/^$reqpath^.tpl ) + template.awk pub/^$reqpath^.tpl | rc $rcargs if not if(~ $body */index && ~ $#blogDirs 0) { echo '

' `{basename `{basename -d $body}}'

' echo '