[Catalyst] Re: Announce: Website In A Box

Brian Kirkbride brian.kirkbride at deeperbydesign.com
Wed Mar 21 22:45:11 GMT 2007


Christopher H. Laco wrote:
> THe only part of that that feels dirty is that it's still an either-or
> situation, rather than an base_mine situation. That could be solved by
> TT plugins, but that's nasty at some level.

True, but if you get the granularity right this is not a problem.  Think of 
method overriding as a metaphor:

Class A
- method outer (calls inner)
- method inner (calls detail)
- method detail

Class B
- method inner
(inherits outer and detail)

can be compared to:

templates/base/
   outer.tt2 (PROCESS inner.tt2)
   inner.tt2 (PROCESS detail.tt2)
   detail.tt2

templates/local/
   inner.tt2

Hopefully that makes sense!



More information about the Catalyst mailing list