[pylons-discuss] Re: passing a context object to css

2014-10-21 Thread 'gazza' via pylons-discuss
Yes point 3 seems the best option. Simply override the css and stick the c.color in the style section. On Tuesday, October 21, 2014 11:06:29 AM UTC-5, Jonathan Vanasco wrote: > > You have 3 options: > > 1. Generate the CSS in your main template (in a style section) > 2. Generate the CSS as a dyna

[pylons-discuss] Re: passing a context object to css

2014-10-21 Thread Jonathan Vanasco
You have 3 options: 1. Generate the CSS in your main template (in a style section) 2. Generate the CSS as a dynamic file 3. Use a static CSS file, and generate CSS overrides in the main template (in a style section) I prefer option 3. -- You received this message because you are subscribed

[pylons-discuss] Re: passing a context object to css

2014-10-21 Thread 'gazza' via pylons-discuss
Thanks. Not sure how to use mako to genetate css files. Yes I need to have some dynamic content in the css. Could you be so kind and forward a link or an example on how to do this with mako? On Tuesday, October 21, 2014 1:52:11 AM UTC-5, Torsten Irländer wrote: > > Hi, > > +1 for mako. > I also

[pylons-discuss] Re: passing a context object to css

2014-10-20 Thread Torsten Irländer
Hi, +1 for mako. I also use mako to generate the CSS files if I want to add some dynamic content. This works pretty well so far here. Am Dienstag, 21. Oktober 2014 00:31:00 UTC+2 schrieb gazza: > > Hello, > > Normally I would pass my context object to a template. However I would > like to > pa