Debugging
This commit is contained in:
parent
9a0a21d1bb
commit
6fbddf78a6
19
qsgen2
19
qsgen2
@ -339,19 +339,20 @@ function _pages() {
|
|||||||
|
|
||||||
# Insert page_content into pages_tpl by replacing the BODY tag present there
|
# 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"
|
if (${debug}) echo "_pages: Replacing BODY with page_content in pages_tpl"
|
||||||
echo ${pages_tpl} | grep BODY | sed -e "s|BODY|${page_content}|" >> ${www_root}/${pages_title_lower%.*}.html
|
echo ${pages_tpl} | grep BODY | sed -e "s|BODY|${page_content}|"
|
||||||
|
# >> ${www_root}/${pages_title_lower%.*}.html
|
||||||
|
|
||||||
# Always use lowercase for file names
|
# Always use lowercase for file names
|
||||||
pages_title_lower=$( _file_to_lower "${pages_in_array}" )
|
pages_title_lower=$( _file_to_lower "${pages_in_array}" )
|
||||||
|
|
||||||
echo "PAGES TEMPLATE"
|
#echo "PAGES TEMPLATE"
|
||||||
echo ${pages_tpl}
|
#echo ${pages_tpl}
|
||||||
echo "#######################################################################################"
|
#echo "#######################################################################################"
|
||||||
echo "PAGE CONTENT"
|
#echo "PAGE CONTENT"
|
||||||
echo ${page_content}
|
#echo ${page_content}
|
||||||
echo "#######################################################################################"
|
#echo "#######################################################################################"
|
||||||
echo "FINAL PAGE: ${pages_title_lower%.*}.html"
|
#echo "FINAL PAGE: ${pages_title_lower%.*}.html"
|
||||||
cat ${www_root}/${pages_title_lower%.*}.html
|
#cat ${www_root}/${pages_title_lower%.*}.html
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user