[Catalyst] Re: questions on Reaction

Daniel McBrearty danielmcbrearty at gmail.com
Tue Jan 2 21:36:42 GMT 2007


ok ... but I have /root as my site base (static files), all my
tempates are in /templates ... can I put them in /templates/base
somehow?



On 1/2/07, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> On 2 Jan 2007, at 21:20, Daniel McBrearty wrote:
>
> > gotcha. The only part I had to put in Root.pm was the
> > __PACKAGE__->config( ... ), which is logical.
> >
> > I found a lot of templates under root/base ... including 'xhtml' which
> > at some point calls
> >
> > [% INCLUDE header;
> > window.render_viewport(self.inner); %]
> >
> > which I guess then runs down the various objects that were added with
> > $self->push_viewport(ViewPort, 'blah')  in the controllers.
>
> Basically, yes.
>
> > These templates have lots of apparently widget-orientated stuff ... is
> > this library code or app code used to generate the crud stuff? how do
> > I set up where it lives in my app?
>
> Currently, using a symlink, because I've not come up with a general
> solution and wanted something trivial to rip out once I do.
>
> To add your own templates, stick 'em in root/ of your app, do an
> INCLUDE on whichever base template you're subclassing and then define
> BLOCKS appropriately plus setting the appropriate foo_block var to
> the name of your own blocks - ISTR listview subclasses listview_base
> in the default stuff as a reasonably simple example.
>
> --
> Matt S Trout, Technical Director, Shadowcat Systems Ltd.
> Offering custom development, consultancy and support contracts for
> Catalyst,
> DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for
> details.
> + Help us build a better perl ORM: http://dbix-
> class.shadowcatsystems.co.uk/ +
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list