mirror of https://github.com/dyne/webnomad.git
render footer after js inclusion
This commit is contained in:
parent
c24bd3a8e5
commit
2abfc5f814
11
render
11
render
|
|
@ -189,11 +189,6 @@ render_footer() {
|
||||||
</div><!--/.container-->
|
</div><!--/.container-->
|
||||||
EOF
|
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
|
# include all css files found in views/css
|
||||||
jsfound=`find $DIR/views/js -type f -name '*.js'`
|
jsfound=`find $DIR/views/js -type f -name '*.js'`
|
||||||
for j in ${(f)jsfound}; do
|
for j in ${(f)jsfound}; do
|
||||||
|
|
@ -213,6 +208,12 @@ EOF
|
||||||
fi
|
fi
|
||||||
done
|
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
|
# if test mode then render the test footer
|
||||||
[[ "$CMD" = "test" ]] && render_test_footer
|
[[ "$CMD" = "test" ]] && render_test_footer
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue