template::cmp_page_filter (private)
template::cmp_page_filter why
Defined in packages/acs-templating/tcl/filter-procs.tcl
Show the compiled template (for debugging)
- Parameters:
- why (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ad_try { set url [ns_conn url] regsub {.cmp} $url {} url_stub regexp {^/([^/]*)(.*)} $url_stub all package_key rest set file_stub "$::acs::rootdir/packages/$package_key/www$rest" set beginTime [clock clicks -milliseconds] set output "<pre>[ns_quotehtml [template::adp_compile -file $file_stub.adp]]</pre>" set timeElapsed [expr {[clock clicks -milliseconds] - $beginTime}] ns_log debug "cmp_page_filter: Time elapsed: $timeElapsed" } on error {errorMsg} { set output <html><body><pre>[ns_quotehtml $::errorInfo]</pre></body></html> } ns_return 200 text/html $output return filter_returnXQL Not present: Generic, PostgreSQL, Oracle