Hello all I'm new to the list. I've been using TT2 heavily for about a
year now and I love it, thank you for all your hard work. Though
recently I have run in to a snag... it's not the code but more how to
extend the code. We've had a request to have our site spit out XML vs
HTML when the user requests it. So far the thinking is that Apache can
set an ENV var xml=1 when you go to xml.host or the user can ask for
xml via including xml=1 in the get vars. In an effort to not have to
go back and retouch all our code to include this check is to extend
things so that this check becomes global. My initial though was to
extend Template->process(), but I cant seem to find a way to get the
callers cgi object to check params? Then I though that I was over
thinking this. I dug thru the archives for the past year and the
closest thing that I could find was Bill Moseley's thread about
Template->Provider.

Am I over thinking this? Is Template->Process the best place for this
kind of check? How would I go about importing the callers cgi object?
By the time we get to process it seems like I've lost access to
Apache?

Any who, any nudge in the right direction would be greatly appreciated.

--
benh~

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to