Forum OpenACS Q&A: Re: How to set the mime-type for a page (ADP/Tcl pair)

A possible workaround could be:
  1. Use template::adp_compile to merge your data sources with the ADP template, i.e.
    set code [template::adp_compile -file mypage.adp]
  2. Use template::adp_eval to get the resulting output, i.e.
    set smil [template::adp_eval code]
  3. Send the output to the connection with ns_return
That worked out perfectly fine, Claudio. Thanks for the tip!

kind regards,
koen.