Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Building Tables in Catalystby TheHobbit (Pilgrim) |
on Apr 17, 2013 at 18:50 UTC ( [id://1029197]=perlquestion: print w/replies, xml ) | Need Help?? |
TheHobbit has asked for the wisdom of the Perl Monks concerning the following question: Greetings monks, I'm looking for a module analogous of HTML::FormBuilder, but targeted to build tables to be used in a Catalyst app. Ideally, I would have to define a table class with something like
Here, has_column should be some analogous of has_field in HTML::FormBuilder Then, in my controller I'll do something like Here tabular data means something like a Data::Table instance, or a sequence of row object, such as that returned by a DBIC search. Later, in mytable.tt2 TT template I'll have a line with and all will magically work :) For all to magically work I need, at the very least, to be able to put wrappers around things (whole table, rows, individual cells...) by defining wrapper methods/classes as in HTML::FormBuilder Now there are the questions. First, does a module such as this, or something approaching it, exists? If not, would it be interesting to have it? Leo TheHobbit
Back to
Seekers of Perl Wisdom
|
|