[html-formfu] new template usage (AKA: goodbye to deploy)

Mario Minati mario.minati at googlemail.com
Fri Nov 2 23:23:14 GMT 2007


On Wednesday 31 October 2007 14:50:49 Carl Franks wrote:
> Hi,
>
> I've changed how template files are handled (I pinched the idea from
> claco's Mango).
>
> When you install HTML::FormFu, the template files are now installed
> somewhere in your @INC path.
> (this is done by Module::Install's install_share() feature)
>
> That system directory is now always added to the end of the TT
> INCLUDE_PATH.
>
> This means that:
> * You only need a local copy of the template files if you're going to
> customise them.
> * If you don't have a local copy of the templates, you don't need to
> worry about updating them when you upgrade HTML::FormFu.
> * Most people won't have to worry about deploying the template files any
> longer. * You can write 1-liner tests without having to deploy template
> files.
>
> * The deploy script now warns that you should only be deploying files
> if you're customising the templates.
> * INCLUDE_PATH no longer defaults to 'root'.
>
> Catalyst-Controller-HTMl-FormFu has been updated, so that it only adds
> 'root/formfu' to your INCLUDE_PATH if it's not already set, and if the
> directory 'root/formfu' exists.
>
> After upgrading to the next cpan release, I recommend that if you've
> not customised the template files in 'root/formfu', that you delete
> that directory.

just perfect :-)

Greets,
Mario



More information about the HTML-FormFu mailing list