I used to do this in a template
<html> ... <script> {% include "myapp/includes/jquery-1.7.1.min.js" %} {% include "myapp/includes/myscript.js" %} </script> ...
But this makes all js code appear on the page source.
I do not use any form in my template, so can I use the Media class to add js?
Should I use <script src=".."
or the ref = ".." link to add javascript files? Which one is better?
damon source share