Forum OpenACS Q&A: Templating System and ns_write
template::adp_parse- unless somebody has since created a slightly nicer API for this sort of thing, that is.
It might be nice to be able to do ns_write style stuff within the templating system without having to take the performance hit of doing template::adp_parse all the time. (Normally, the Templating System compiles the parsed ADP to a Tcl proc, byte compiles that, and caches everything. I think you lose that by calling template::adp_parse explicitly.) But I never really thought about that.