Debugging

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 00:54:44 +01:00
parent 15e80f4c4e
commit a3a4e3b46b

4
qsgen2
View File

@ -339,13 +339,11 @@ function _pages() {
# 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"
final_page=$( sed -i "s|BODY|${page_content}|g" ${pages_tpl} )
echo ${pages_tpl} | sed -e "s|BODY|${page_content}|g" > ${www_root}/${pages_title_lower%.*}.html
# Always use lowercase for file names
pages_title_lower=$( _file_to_lower "${pages_in_array}" )
echo "${final_page}" > ${www_root}/${pages_title_lower%.*}.html
echo "PAGES TEMPLATE"
echo ${pages_tpl}
echo "#######################################################################################"