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
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
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.
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
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,