Re: [TurboGears] how to add additional css inside turbogears with Jinja templates

2015-05-15 Thread Alessandro Molina
On Fri, May 15, 2015 at 1:53 PM, Krishnakant Mane wrote: > ok I am trying to understand this. > I however am confused about a couple of things. > 1, when creating forms with toscawidgets in turbogears is it necessary > that I must use genshi? If yes then adding css to roms will need the > resour

Re: [TurboGears] how to add additional css inside turbogears with Jinja templates

2015-05-15 Thread Krishnakant Mane
ok I am trying to understand this. I however am confused about a couple of things. 1, when creating forms with toscawidgets in turbogears is it necessary that I must use genshi? If yes then adding css to roms will need the resource list as you suggested. is that correct? 2, If i decide to use j

Re: [TurboGears] how to add additional css inside turbogears with Jinja templates

2015-05-14 Thread Alessandro Molina
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

[TurboGears] how to add additional css inside turbogears with Jinja templates

2015-05-14 Thread kk
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 hacki