template::filter (public)

 template::filter command [ args... ]

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

Run any filter procedures that have been registered with the templating system. The signature of a filter procedure is a reference (not the value) to a variable containing the URL of the template to parse. The filter procedure may modify this.

Parameters:
command

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-content-repository/tcl/acs-content-repository-init.tcl packages/acs-content-repository/ tcl/acs-content-repository-init.tcl template::filter template::filter packages/acs-content-repository/tcl/acs-content-repository-init.tcl->template::filter template::url template::url (public) template::filter->template::url

Testcases:
No testcase defined.
Source code:
    variable filter_list

    lassign $args arg1 arg2

    switch -exact $command {

        add { lappend filter_list $arg1 }

        exec {
            upvar $arg1 url $arg2 root_path
            foreach proc_name $filter_list { $proc_name url root_path }
        }

        default { error "Invalid filter command: must be add or exec" }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: