On Tue, Apr 17, 2007 at 04:05:11AM -0700, Antipin Aleksei wrote:
> I configured Pylons to be used with Mako. It works greate, but I can't
> make webhelpers work.
> In an inhereted template I had simple login form- it was rendered as I
> expected. Then I tried to switch to using webhelpers to generate the
> same form. But it doesn't work for me.
> I added to helpers.py
> from webhelpers.rails import *
>
> But then I tried the following in my template:
>
> +
> <% h.text_field('email') %>
> <% h.url_for('index2') %>
> <% h.url_for(controller='index', action='login') %>
> +
Try ${ h.foobar() } instead of <% h.foobar() %>
Although <% ... %> should allow Python statements it doesn't output them
directly. A <% print h.text_field(...) %> may have worked but ${} is
preferred.
Christoph
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---