Forum OpenACS Q&A: Re: returning a different adp template from within an <include>

I do it all the time... most of the time to create a print view verses as web view.

Try with simplified-output instead of simplified-output.adp

Collapse
Posted by russ m on
ah, thanks for that (it's what I tried first, but was using paths relative to the fragment .tcl file rather than the calling page). But processing still continues in the tcl file once the alternate template is returned though - do you know any &lt;include&gt;-compatible analogue to ad_script_abort?

And while I'm on the topic of the templating system, I also have a couple of cases where large chunks of display HTML are generated purely in tcl... these are now living in &lt;include&gt;ed page fragments, where the .adp is nothing but

@fragment_html;noquote@

Is there a way of getting fragment output directly from a .tcl file into the result page without having to tweak templating-private data structures?