I have three template folders.

base, pages and components.

base contains my site furniture.
components are the various reusable elements of the site.
pages pull it all together by including a base file and calling
various components files

The base file includes the head tag and so any style sheets need to be
included here.
I can include a style sheet in the pages file by putting the following
in the base file.

<head>
    <link href="/style/furniture.css" media="all" rel="stylesheet"
type="text/css" />
    ${next.Head()}
</head>

and then the following in the page file.

<%def name="Head()">
     <link href="/style/page.css" media="all" rel="stylesheet"
type="text/css" />
</%def>

But how do I attach a style from the component file?
--~--~---------~--~----~------------~-------~--~----~
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, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to