I am attempting to pull data from our database and convert it into XML. These XML documents will then be used to interact with other libraries and servers. The browser will still receive HTML when it's done. Perhaps in a future iteration, these same XML documents will become components of an AJAX interface for the client.
I would like to use the OpenACS templating system for this and be able to store my templates as a string (not just as a file). Within those strings, I'd like to use <multiple>, @var@, and similar features. I have a basic prototype using ns_adp_parse, but it only recognizes the <% %> and <%= %> syntax.
Can anybody point me to the right documentation on this? I have been looking for longer than seems reasonable and can't figure out how to do it. Perhaps template::adp_include is what I want, but it seems to require that the files be on disk. If that's the only way, can I assure that they'll never get called from a browser? This is, for now, supposed to be for internal consumption only.
If this is a totally newbie question, I offer my apologies. I'm fairly new to both TCL and OpenACS. Thanks in advance to anybody who can help.
Kind regards,
Justis