in reply to Re: Re: I am about to write my very own templating module..
in thread I am about to write my very own templating module..

I use to work for a company that helped to invent DOM and XML.

So that was your fault? :)

The key thing about the templating method, and the thing I still like about it most, was that the source and template were both XML.

Sounds a lot like the things that AxKit can do to me, or possibly Apache::ASP with XMLSubs.

The beauty of this approach is that the template and source are well-formed XML/HTML that can be worked on with any respectable HTML/XML tool. If that's important to you, you could check out HTML_Tree as well.

Request comes into Apache
Apache starts the script
The engine checks to see if there is a finished page in the cache, and serves that if there is one
The engine loads the template, and scans it
When it finds an instruction, if goes off and pulls that content in
Finally it caches the page, and sends the finishined page to the browser

Strictly speaking, caching pages is more of a web framework function than a templating tool one. Personally, I like to use mod_proxy for this and take some load off mod_perl. However, AxKit does have this built in.

  • Comment on Re: Re: Re: I am about to write my very own templating module..