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?

On Feb 2, 10:34 pm, Krishgy <[email protected]> wrote:
> I use Pylons 0.9.7 on Debian 4.0 etch.
>
> Rails  text_field returns escaped html output.
>
> Here is my helpers.py content
>
> helpers.py
> -----------
>
> from webhelpers import *
> from webhelpers.html import *
> from webhelpers.html.tags import *
> from routes import url_for
> from webhelpers.rails import stylesheet_link_tag
> from webhelpers.rails import text_field
>
> my mako template
>
> ${h.text_field(name="display_name", id="display_name")}
>
> this renders the following in browser.
>
> <input id="display_name" name="display_name" type="text" />
>
> It seems like it is escaping the html content.
>
> ${h.text_field(name="display_name", id="display_name") | n}
>
> display right data. I mean, no filter.
>
> I think, rails helpers is depreciated. otherwise how to use
> text_field, stylesheet_link_tag features without rails helpers?
--~--~---------~--~----~------------~-------~--~----~
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