fn conf_enable_janes{ janes_base_uri=$conf_wd janes_root=`{pwd} conf_enable_app janes } fn janes_build{ if(test -f $janes_root/$"janes_dir/img/_werc/smak/thumb/*){ img=`{ls -p $janes_root/$"janes_dir/img/_werc/smak/thumb | sed 1q} echo '
'
}
for(i in $skipdirs){
if(test -d $janes_root/$"janes_dir/$i)
echo ''^$i^''
}
n=1
for(i in $files){
if(test -f $janes_root/$"janes_dir/$i){
echo '
'^$i^'' if not md_handler $1 } fn janes_init{ p=`{echo $req_path | sed 's!^'^$janes_base_uri^'!!'} janes_dir=`{basename -d $"p | sed 's!^\.$!!'} if(test -f $janes_root/$"janes_dir/_werc/janes/skipdirs) skipdirs=`{cat $janes_root/$"janes_dir/_werc/janes/skipdirs} if not if(test -f $janes_root/_werc/janes/skipdirs) skipdirs=`{cat $janes_root/_werc/janes/skipdirs} if(test -f $janes_root/$"janes_dir/_werc/janes/layout){ files=`{awk '{print $1;}' $janes_root/$"janes_dir/_werc/janes/layout} headings=`{awk '{print $2;}' $janes_root/$"janes_dir/_werc/janes/layout} } if not if(test -f $janes_root/_werc/janes/layout){ files=`{awk '{print $1;}' $janes_root/_werc/janes/layout} headings=`{awk '{print $2;}' $janes_root/_werc/janes/layout} } if(test -d $janes_root/$"janes_dir \ && ! ~ `{basename $"janes_dir} $skipdirs \ && ! test -f $janes_root/$"janes_dir^/index.^(md htm html tpl)){ handler_body_main=(tpl_handler `{janes_template entry}) } } fn janes_template{ if(test -f $janes_root/_werc/janes/$1.tpl) echo -n $janes_root/_werc/janes/$1.tpl if not get_lib_file janes/$1.tpl apps/janes/$1.tpl }