> And you can set the location header, bodytop and bodybottom. Take a look at > the tw docs. > > Diez > > Am 06.08.2010 um 09:57 schrieb NiL <[email protected]>: > >> 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
This is very helpful, but what about in the general case? For example, to use google maps, I need to embed some extra information in head. As I read the tw docs, this will only work for tw.api.JSLink or tw.api.JSSource objects. -- 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.

