A debug setting

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 00:00:34 +01:00
parent 3ae67ce4d5
commit 1d0e8df796

2
qsgen2
View File

@ -322,6 +322,8 @@ function _pages() {
if (${debug}) echo "_pages: Running engine on ${pages_in_array}" if (${debug}) echo "_pages: Running engine on ${pages_in_array}"
page_content=$( ${engine} ${page_content} ) page_content=$( ${engine} ${page_content} )
local pages_tpl="$(<${pages})"
# Replace every #pagetitle in pages_tpl # Replace every #pagetitle in pages_tpl
if (${debug}) echo "_pages: Replacing #pagetitle in pages_tpl" if (${debug}) echo "_pages: Replacing #pagetitle in pages_tpl"
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#pagetitle|${page_title}|g" > /dev/null ) pages_tpl=$( echo ${pages_tpl} | sed -e "s|#pagetitle|${page_title}|g" > /dev/null )