From 43b72cf5d3661f83fb3324dbbd7aeec1c8e283fc Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Tue, 9 Jun 2020 20:42:37 -0400 Subject: [PATCH] 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 --- bin/werc.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/werc.rc b/bin/werc.rc index 42ae4f5..0d006a3 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -17,7 +17,6 @@ dirclean=' s/\.(md|html|txt)$//; ' # Careful, the proper p9p path might not be set until initrc.local is sourced path=(. /bin ./bin) -headers=lib/headers.tpl res_tail='' http_content_type='text/html' ll_add handlers_bar_left nav_tree @@ -37,6 +36,7 @@ fn werc_exec_request { 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}