Debugging

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 01:18:48 +01:00
parent 3f345bb049
commit 3060b18dee

7
qsgen2
View File

@ -333,13 +333,16 @@ function _pages() {
if (${debug}) echo "_pages: Replacing tagline"
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#tagline|${site_tagline}|g" )
echo ${page_content}
exit
#echo ${page_content}
#exit
# Insert page_content into pages_tpl by replacing the BODY tag present there
if (${debug}) echo "_pages: Replacing BODY with page_content in pages_tpl"
pages_tpl=$( echo ${pages_tpl} | sed -e "s/BODY/${page_content}/g" )
echo ${pages_tpl}
exit
# HTML'ify the page content
if (${debug}) echo "_pages: Running engine on ${pages_in_array}"
pages_tpl=$( ${engine} ${pages_tpl} )