render footer after js inclusion

This commit is contained in:
Jaromil 2017-04-09 00:45:36 +02:00
parent c24bd3a8e5
commit 2abfc5f814
1 changed files with 6 additions and 5 deletions

11
render
View File

@ -189,11 +189,6 @@ render_footer() {
</div><!--/.container-->
EOF
render_file "$DIR"/tmpl/footer.html
# add any string argument to the footer
[[ "$1" = "" ]] || { print "${@}"; print }
# include all css files found in views/css
jsfound=`find $DIR/views/js -type f -name '*.js'`
for j in ${(f)jsfound}; do
@ -213,6 +208,12 @@ EOF
fi
done
render_file "$DIR"/tmpl/footer.html
# add any string argument to the footer
[[ "$1" = "" ]] || { print "${@}"; print }
# if test mode then render the test footer
[[ "$CMD" = "test" ]] && render_test_footer