[html-formfu] best practice for TT based widgets?
Carl Franks
fireartist at gmail.com
Fri Oct 29 13:35:50 GMT 2010
On 29 October 2010 14:18, Yuval Kogman <nothingmuch at woobling.org> wrote:
> Currently I'm using:
>
> $left->content_xml( $c->view("TT")->render($c, "blah.tt", {
> disable_wrapper => 1 }) );
>
> Is there a better way? I was hoping to be able to specify something like:
>
>
> - type: Block
> params: ...
> render_method: tt
> filename: blah.tt
>
> But in a way that unlike [% form.render %], propagates the TT
> environment so I can use things like [% c.uri_for %], etc...
Hi Yuval,
I haven't tried anything like that before, but if you're using
Catalyst::Controller::HTML::FormFu you can use
[% form.stash.context %]
to access the Catalyst context.
Carl
More information about the HTML-FormFu
mailing list