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 jinja (which I plan to ) will I have any problems 
using with turbogears?
Happy hacking.
Krishnakant.

On Thursday, May 14, 2015 at 2:03:38 PM UTC+5:30, Alessandro Molina wrote:
>
> 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] <javascript:>> 
> 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > 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.

Reply via email to