Debugging
This commit is contained in:
parent
8571531199
commit
47939bc7ea
9
qsgen2
9
qsgen2
@ -338,17 +338,22 @@ function _pages() {
|
||||
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#tagline|${site_tagline}|g" )
|
||||
|
||||
# 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 "s|BODY|${page_content}|g" )
|
||||
if (${debug}) echo "_pages: Replacing BODY with page_content in pages_tpl"
|
||||
final_page=$( echo ${pages_tpl} | sed "s|BODY|${page_content}|g" )
|
||||
|
||||
# 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 "#######################################################################################"
|
||||
echo "PAGE CONTENT"
|
||||
echo ${page_content}
|
||||
echo "#######################################################################################"
|
||||
echo "FINAL PAGE: ${pages_title_lower%.*}.html"
|
||||
cat ${www_root}/${pages_title_lower%.*}.html
|
||||
exit
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user