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-->
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue