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

Partial Call Graph (max 5 caller/called nodes):
%3 ad_try ad_try (public) template::adp_compile template::adp_compile (public) template::cmp_page_filter template::cmp_page_filter template::cmp_page_filter->ad_try template::cmp_page_filter->template::adp_compile

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_return
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ]
Show another procedure: