You'll have to use a filter to include rendered deform forms in a mako
template, like so
${form.render()|n}
The n-filter prevents escaping.
regards
robert
On Thu, Sep 8, 2011 at 1:51 PM, Ben Sizer <[email protected]> wrote:
> On Sep 1, 2:32 am, cd34 <[email protected]> wrote:
>> Also, I use deform with both Mako and Jinja2,
>> and unless you need to change the widgets, it doesn't really matter
>> much that the templates use chameleon. I've written several projects
>> and except for one minor case, haven't modified the templates.
>
> That's what I had hoped would be the case, due to the similar syntax.
> But when I actually tried it, the change from Chameleon to Mako
> started escaping all the HTML that I was injecting into the template,
> including rendered forms, which made a lot of my code useless. :)
>
> Thanks also for your example code. Whether or not I use deform, I will
> probably switch to Mako and so the summary of all the things I need to
> change is very helpful.
>
> --
> Ben Sizer
>
> --
> 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.
>
>
--
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.