Re: subclassing requests & mason 2.0
John Siracusa <[email protected]> Wed, 16 May 2007 10:41:17 -0400
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <C270904D.7541E%[email protected]> |
On 5/16/07 9:24 AM, Dave Rolsky wrote: > On Wed, 16 May 2007, John Siracusa wrote: >> 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. > > I expect we'll have something like the current Resolver class. Does the resolver handle the template i/o too? I thought it just translated requested paths to actual paths (and somewhat painfully, at that). I'm thinking more along the lines of what the lowest-level Mason 2 template engine would deal with, and it shouldn't be files or paths, IMO. -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/