Re: subclassing requests & mason 2.0

John Siracusa <[email protected]> Wed, 16 May 2007 09:23:23 -0400
Newsgroups gmane.comp.web.mason.devel
Message-ID <C2707E0B.75400%[email protected]>
On 5/15/07 11:31 PM, Dave Rolsky wrote:
> On Tue, 15 May 2007, Hans Dieter Pearcey wrote:
>> Abstraction of the input method might be a useful design goal for 2.0.  It's
>> something that Catalyst has done very well, as far as my experience goes.
> 
> Which is yet another reason my main interest in Mason 2.0 is producing a
> template system that works well with Catalyst, Jifty, etc.

On the "etc." front, please make sure that the template input and output
mechanism are suitably generic.  A callback for "give me the next piece of
this template" and another for "here's the next piece of output that I've
produced from that template" should cover all bases.  On top of that can be
built the traditional "a template is a file on disk" and "output is printed
to filehandle foo" hook-ups.

-John



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/