Thanks Mike.

I hope rails refers to ruby on rails?

If that is correct, why do we need to refer them 'rails' in Python Web
Helpers? The concept could have been derived from rails but we can
call them according to Webhelpers standard. We may include
stylesheet_link as part of webhelpers.html.tags itself.



On Feb 3, 2:05 am, Mike Orr <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to