Re: subclassing requests & mason 2.0
Dave Rolsky <[email protected]> Wed, 16 May 2007 10:16:55 -0500 (CDT)
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 16 May 2007, John Siracusa wrote: >> 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. Right now the "get the source of a component" bit is handled by the ComponentSource class. The Resolver and ComponentSource are pretty tightly bound, and I have always sort of wanted to combine them, so I imagine in Mason 2.0 there might be a single object responsible for finding components and providing source and metadata (last mod time, path, etc). -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/ ------------------------------------------------------------------------- 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/