Hello, I would probably prefer to keep all my CSS files as purely static files, for performance reasons (actually, I would create Sass files, and have Fanstatic automatically compile and minify them for me, but that's another story)
Mako can be used for creating CSS templates, but then these CSS files won't have the same path as the static ones (they will live with your HTML templates), so you'll need to remember which is which when you include them in your HTML code. That's probably the way you must go. In that case, I would keep the "dynamic CSS" to a minimum, i.e. a single, short file overloading a static CSS file. Hope this helps, Laurent. Le 21/10/2014 00:31, 'gazza' via pylons-discuss a écrit : > Hello, > > Normally I would pass my context object to a template. However I would > like to > pass this to a css class. > > i.e c.color="red" > > Is this possible? or do I have to add a style statement in html on the > template. > > Thanks, > Gary C > > -- > You received this message because you are subscribed to the Google > Groups "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to pylons-discuss+unsubscr...@googlegroups.com > <mailto:pylons-discuss+unsubscr...@googlegroups.com>. > To post to this group, send email to pylons-discuss@googlegroups.com > <mailto:pylons-discuss@googlegroups.com>. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.