Forum OpenACS Q&A: Response to Using an .adp template with a .vuh page

Collapse
Posted by Stephen . on
Sorry, that was a quick cut 'n paste, untested. My actual set-up is:
# www/tmp/index.vuh
set path [string trimright [ad_conn file] index.vuh]
rp_serve_abstract_file [append path "virtual"]

# www/tmp/virtual.tcl
set urlv [ad_conn urlv]
ad_return_template

-- www/tmp/virtual.adp
<master>
<h1> @urlv@ </h1>
The real work of serving the request is pushed off to the virtual.tcl/adp pair so that the template can be different than that used for index.tcl without breaking the convention that code/template pages are similarly named. My bad...