On Sun, Aug 9, 2009 at 5:42 PM, Thierry<[email protected]> wrote:
>
> I'm searching the Pylons document to show an example on how to include
> public files(css, js, images) on the template side(I'm using Mako) but
> cannot locate it. Is there a search field that I can use to search
> for specific keyword within the documentation?
Hmm? Entering "public" at pylonshq.com shows several links in the
Pylons Docs and Pylons Cookbook.
Re your specific question, any of these will work.
<link ... href="/default.css" />
<link ... ${url("/default.css")} />
${h.stylesheet_link(url("/default.css"))} # Assuming helpers.py
contains "from webhelpers.html.tags import *"
The latter two are preferred because they'll add the application
prefix to the URL if the application is ever mounted at a
subdirectory.
--
Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---