Debugging

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 00:42:34 +01:00
parent a20405a447
commit da4687be95

8
qsgen2
View File

@ -316,14 +316,14 @@ function _pages() {
if (${debug}) echo "_pages: Grepping for page_title" if (${debug}) echo "_pages: Grepping for page_title"
page_title=$( echo ${page_content} | head -1 | grep \#title | cut -d= -f2 ) page_title=$( echo ${page_content} | head -1 | grep \#title | cut -d= -f2 )
# Remove the #title line from the buffer. No longer needed.
if (${debug}) echo "_pages: Removing #title line from page_content"
page_content=$( echo ${page_content} | grep -v \#title )
# HTML'ify the page content # HTML'ify the page content
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} )
# Remove the #title line from the buffer. No longer needed.
if (${debug}) echo "_pages: Removing #title line from page_content"
page_content=$( echo ${page_content} | grep -v \#title )
#if (${debug}) echo "_pages: Writing page_content to disk" #if (${debug}) echo "_pages: Writing page_content to disk"
#echo ${page_content} > ${project_dir}/${pages_in_array%.*}.idx #echo ${page_content} > ${project_dir}/${pages_in_array%.*}.idx