On 23/03/07, Zbigniew Lukasiak <[EMAIL PROTECTED]> wrote:
On 3/20/07, Carl Franks <[EMAIL PROTECTED]> wrote:
>
> I think FormFu is powerful enough that it should really be a
> last-resort to do anything in your template other than [% form %].
> Really!
>
> The form is generated from TT templates.
> Each application has it's own copy of the template folder, so you can
> make any changes you want.
> If necesary, you can even make a copy of that folder for a single
> form, and put the appropriate options in that forms config file, so it
> uses the appropriate template folder.
>
Hmm - does that mean - that in Catalyst I could put the configuration
FormFu TT templates into the root directory and have all the templates
under root? This way for the designers [% form %] would just mean a
kind of [% INCLUDE %] - I think this is a good simplification of the
process. What do you think?
Yes.
If you use the Catalyst helper, by default it'll put the formfu
templates in 'root/formfu'.
script/myapp_create.pl HTML::FormFu
If you use Catalyst::Controller::HTML::FormFu, by default it'll pass
the appropriate options to HTML::FormFu so it loads it's templates
from 'root/formfu'.
Of course, FormFu only uses TT internally, so you can use any template
module for your *page* templates.
For example, if you use HTML::Template - then in your page template,
you would do <!-- TMPL_VAR form -->
We should probably add a new option that allows you to add a new
directory onto the start of the template INCLUDE_PATH.
This would let you state in a single form's config file that you want
to search a different directory first - which would allow you to
create a new directory for that single form, and only put in it the
files that you're going to customise.
Carl
_______________________________________________
Html-widget mailing list
Html-widget@lists.rawmode.org
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget