[Catalyst] More Catalyst Template Toolkit examples?

Andreas Marienborg omega at palle.net
Sat May 3 09:53:04 BST 2008


On May 3, 2008, at 3:52 AM, Ryan Grace wrote:

> Hi All,
>
> I'm working my way through the Catalyst tutorial and am currently in  
> Part* Advanced CRUD.  In this section HTML::Widget is introduced,  
> along with examples of using TT2 with H::W.
>
> One line in an example of a TT2 template near the bottom of the page  
> uses:
>
> [% FOREACH element = widget_result.elements %]
>
>
> I'm having a hard time figuring this out because I can't find  
> mention of the
> .elements method anywhere.
>
> Does someone have a pointer to more advanced examples of using TT2  
> with H::W and Catalyst?
>
> Or a pointer to documentation about the available options in  
> C::P::H::W?  .elements isn't mentioned in the H::W documentation  
> anywhere that I can find.

Your widget_result is an object of the class HTMl::Widget::Result.

http://cpansearch.perl.org/~cfranks/HTML-Widget-1.11/lib/HTML/Widget/Result.pm#elements

I would recommend trying to use for instance HTML::FormFu instead of  
HTML::Widget, as HTML::Widget is no longer activly maintained


- andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080503/d6444677/attachment.htm


More information about the Catalyst mailing list