[Catalyst] RFC: Catalyst::Helper::HTMLDesign

Carl Franks fireartist at gmail.com
Wed Apr 5 12:40:47 CEST 2006


I'm thinking of making some sort of helper module that would create
template files with a basic layout, using seperate templates for the
wrapper, header, footer, etc, with an external stylesheet.

Something to allow an app to look great from the start.

Would something like Catalyst::Helper::HTMLDesign be suitable?

With an interface like:
  script/create.pl HTMLDesign cols 3 header footer
  script/create.pl HTMLDesign cols 2 header
etc

I'm thinking of making it support other Views, but I'll be concentrating on TT.

  script/create.pl HTMLDesign cols 3 view HTML::Template

Would that be an appropriate interface?
Or would it be best to stick to something like
  script/create.pl HTMLDesign::HTML::Template cols 3
and have the other views inherit from HTML::Design::TT for stuff like
the css etc?

It would also have to support different color schemes:
  script/create.pl HTMLDesign cols 2 header scheme puke-green

Feedback, please!

Carl



More information about the Catalyst mailing list