On Fri, Mar 5, 2010 at 10:46 AM, David <oldskif...@yahoo.es> wrote:
> Thanks Jay.
>
> I thought of that solution too when I had a look at
> Catalyst::Plugin::Static::Simple. But in this case, my doubt was, and is,
> how should I create the view through the helper?
> Most of the examples for creating views are TT views, so they create it as
> 'script/hello_create.pl view my_TT_view TT'.
>
> David


I'd really recommend just creating a sample application you can mess
with, like 'catalyst.pl Foo' -- I do this frequently when testing new
things.

Then just script/foo_create.pl view StaticFile would create a skeleton view.

When you supply additional arguments (the "TT") then you are looking
at basing your view off the helper, which is sourced from
Catalyst::View::Helper::TT.  It's fully optional, and omitting that
will just create a very basic package.

Of course you don't have to use any of this, you can just edit
"lib/MyApp/View/MyView.pm" directly and code it up -- it's just a
simple perl package (like what I wrote out above).

-J

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to