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
This commit is contained in:
parent
d11a779f87
commit
58d2576455
1 changed files with 1 additions and 1 deletions
|
|
@ -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='</body></html>'
|
||||
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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue