ad_parse_template (public)

 ad_parse_template [ -params params ] template

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

Return a string containing the parsed and evaluated template to the caller.

Switches:
-params (optional)
The parameters to pass to the template. Note that pass-by-reference params must be in the page namespace, they cannot be in a local procedure, or any other namespace.
Parameters:
template (required)
Name of template file

Testcases:
ad_return_exception_template, create_form_with_form_instance
Source code:
    set template_params [list]
    foreach param $params {
        switch [llength $param] {
            1 { lappend template_params "&" [lindex $param 0] }
            2 { lappend template_params [lindex $param 0] [lindex $param 1] }
            default { return -code error [_ acs-templating.Template_parser_error_in_parameter_list] }
        }
    }
    return [uplevel [list template::adp_parse [template::util::url_to_file $template [ad_conn file]] $template_params]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: