Thanks Remi!
On Aug 27, 12:20 pm, Remi Jolin - SysGroup <[EMAIL PROTECTED]>
wrote:
> le 27.08.2008 17:35 Matt Wilson a écrit:> Hi -- If a template depends on a
> few stylesheets and javascript files,
> > is there any way to pull those without adding them manually to the
> > template? Can the controller handle that?
>
> You can create a widget like this
> class MyJS(widgets.Widget):
> javascript = [JSLink(...), ...]
> css = [...]
>
> and then define
> my_js = MyJS()
> and pass my_js in your output dict of your controller method.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---