template::dat_page_filter (private)

 template::dat_page_filter why

Defined in packages/acs-templating/tcl/filter-procs.tcl

Show the comments for the template (for designer)

Parameters:
why (required)

Partial Call Graph (max 5 caller/called nodes):
%3 ad_try ad_try (public) template::adp_parse template::adp_parse (public) template::resource_path template::resource_path (public) template::dat_page_filter template::dat_page_filter template::dat_page_filter->ad_try template::dat_page_filter->template::adp_parse template::dat_page_filter->template::resource_path

Testcases:
No testcase defined.
Source code:
    ad_try {
        set url [ns_conn url]
        regsub {.dat} $url {} url_stub
        regexp {^/([^/]*)(.*)} $url_stub all package_key rest
        set code_stub "$::acs::rootdir/packages/$package_key/www$rest"
        set beginTime [clock clicks -milliseconds]

        set file_stub [template::resource_path -type messages -style $datasources]

        set output [template::adp_parse $file_stub [list code_stub $code_stub]]

        set timeElapsed [expr {[clock clicks -milliseconds] - $beginTime}]
        ns_log debug " dat_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 ] | [ make this the default ]
Show another procedure: