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!

_______________________________________________
List: Catalyst@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/

Reply via email to