CSS/Javascript in Pylons

2007-08-11 Thread Jose Figueras
Hi, In my controllers I try to include CSS references (to css files inside /public/css) dynamically before I call to render_response(). The same about javascript files. How I should proceed? Cheers, Jose F. --~--~-~--~~~---~--~~ You received this message becau

Re: CSS/Javascript in Pylons

2007-08-12 Thread Christoph Haas
On Sat, Aug 11, 2007 at 02:51:48PM -, Jose Figueras wrote: > In my controllers I try to include CSS references (to css files > inside /public/css) dynamically before I call to render_response(). > > The same about javascript files. If you are using templates then nothing it technically outpu

Re: CSS/Javascript in Pylons

2007-08-16 Thread Jose Figueras
OK, but: 1. what if I use 50+ pages? I need to write 50+ if clauses 2. when I add a new page, I must to remember to add a new if clause 3. my pages def (style with CSS, behaviour with Javascript and content with HTML) are distributed in 2+ documents. This is not the better case for me.

Re: CSS/Javascript in Pylons

2007-08-16 Thread Cezary Statkiewicz
try this: in parent.mako write: ... ${ h.stylesheet_link_tag('/css/parent.css') } ${ self.head_style()} ... .. <%def name="head_style()"> .. and in child.mako: <%def name="head_style()"> ${ h.stylesheet_link_tag('/css/child.css') } def head_style in parent.mako can be used for fallba

Re: CSS/Javascript in Pylons

2007-08-17 Thread Jose Figueras
Great!!! Sounds good. Thank you, Jose F. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group,