template::adp_tag_init (private)

 template::adp_tag_init [ tag_name ]

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

Called at the beginning of every tag handler to flush the ADP buffer of output accumulated from the last tag (or from the beginning of the file).

Parameters:
tag_name (optional) - The name of the tag. Used for debugging purposes only.

Partial Call Graph (max 5 caller/called nodes):
%3 template::adp_append_string template::adp_append_string (private) template::adp_quote_chunk template::adp_quote_chunk (private) template::adp_tag_init template::adp_tag_init template::adp_tag_init->template::adp_append_string template::adp_tag_init->template::adp_quote_chunk

Testcases:
No testcase defined.
Source code:
    # add everything either from the beginning of the template or from
    # the last balanced tag up to the current point in the template

    set chunk [ns_adp_dump]

    if { ! [string is space $chunk] } {
        adp_quote_chunk chunk chunk_quoted
        adp_append_string $chunk_quoted
    }

    # flush the output buffer so that the next dump will only catch
    # the next chunk of the template

    ns_adp_trunc
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: