On Mon, Feb 2, 2009 at 10:05 AM, Krishgy <[email protected]> wrote:
>
> I made it working through webhelpers.html.tags.
>
> from webhelpers.html.tags import *
>
> I used h.text() instead of h.html_field. Thanks for online pylons
> book. Before I was refering chapters written long time ago.
>
> Are there any replacement for stylesheet_link_tag in webhelpers
> instead of using rails helper?
h.stylesheet_link(url("/stylesheets/mystyle.css"))
Note that stylesheet_link() outputs the exact URL specified.
stylesheet_link_tag() added magic prefixes.
If you need to use the deprecated rails helpers, you have to import
them from webhelpers.rails.wrapped instead of webhelpers.rails. This
wraps the output of each function in a literal, which prevents it from
being escaped.
--
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
-~----------~----~----~----~------~----~------~--~---