Forum OpenACS Q&A: Re: evaluating a template from a string

Collapse
Posted by Claudio Pasolini on
You can
  1. create an ordinary adp file pointing it to dotlrn-master
  2. compile the template with:
    set code [template::adp_compile -file $path_to_adp]
  3. merge the template with your data sources with:
    set html [template::adp_eval code]
  4. output the error page with:
    ns_return 200 text/html $html