ref: 58d257645539fa4bfff8a30a501b3077fa38b06c
parent: d11a779f876166d6f654727c5622692609ea8b8e
author: Stanley Lieber <sl@stanleylieber.com>
date: Tue Jun 9 16:42:37 EDT 2020
bin/werc.rc: don't hardcode default header template. move it into werc_exec_request and use fn get_lib_file to prefer a site-specific headers.tpl, just like other .tpl files
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -17,7 +17,6 @@
# Careful, the proper p9p path might not be set until initrc.local is sourced
path=(. /bin ./bin)
-headers=lib/headers.tpl
res_tail='</body></html>'
http_content_type='text/html'
ll_add handlers_bar_left nav_tree
@@ -37,6 +36,7 @@
site=$SERVER_NAME
base_url=http://$site:$SERVER_PORT
sitedir=$sitesdir/$site
+ headers=`{get_lib_file headers.tpl}
master_template=`{get_lib_file default_master.tpl}
current_date_time=`{date}
--
⑨