you might want to look at something like
from tw.api import JSLink, js_function
my_js = JSLink(modname="my.project",
filename='public/javascript/whatever.js',
javascript=[other_js_dependency])
then in your controller
my_js.inject()
this will insert your js only in the context in which your need it, at
the end of the <body>
hth,
nil
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.