In TW2 each widgets has a "resources" list property where you can add any resource required by the widget itself (like CSS or JS): http://tw2core.readthedocs.org/en/latest/design/#resources
You might also want to try tgext.webassets ( https://pypi.python.org/pypi/tgext.webassets ) that provides a full asset pipeline for TG2 with css/js minification, merging and cache busting. If you want to use a javascript loader you can also try https://github.com/amol-/tw2.asyncresources which enables loading TW2 resources through a JS loader. I never tested it on production, as recently I just end up managing all the resources through tgext.webassets as it's far easier, so it's still unreleased, but it seemed to work on my tests :D On Thu, May 14, 2015 at 8:40 AM, kk <[email protected]> wrote: > Dear all, > i wish to know if there is a standard way to add css to tosca widgets > generated forms which will be used in a jinja template. > I had an old application written in Pylons (now Pyramid) but I wish to > switch to Turbogears, because it seems much easy and a full stack framework. > Happy hacking. > Krishnakant. > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

