template::adp_compile_chunk (public)

 template::adp_compile_chunk chunk

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

Parses a single chunk of a template. A chunk is either the entire template or the portion of a template contained within a balanced tag. This procedure does not return the compiled chunk; compiled code is assembled in the template::parse_list variable.

Parameters:
chunk (required)
A string containing markup, potentially with embedded ADP tags.

Partial Call Graph (max 5 caller/called nodes):
%3 test_adp_parse_tags adp_parse_tags (test acs-templating) template::adp_compile_chunk template::adp_compile_chunk test_adp_parse_tags->template::adp_compile_chunk template::adp_append_string template::adp_append_string (private) template::adp_compile_chunk->template::adp_append_string template::adp_parse_string template::adp_parse_string (public) template::adp_compile_chunk->template::adp_parse_string template::adp_quote_chunk template::adp_quote_chunk (private) template::adp_compile_chunk->template::adp_quote_chunk packages/acs-templating/tcl/tag-init.tcl packages/acs-templating/ tcl/tag-init.tcl packages/acs-templating/tcl/tag-init.tcl->template::adp_compile_chunk template::adp_compile template::adp_compile (public) template::adp_compile->template::adp_compile_chunk template::adp_parse_tags template::adp_parse_tags (public) template::adp_parse_tags->template::adp_compile_chunk template::template_tag_if_condition template::template_tag_if_condition (private) template::template_tag_if_condition->template::adp_compile_chunk

Testcases:
adp_parse_tags
Source code:
    # parse the template chunk inside the tag
    set remaining [adp_parse_string $chunk]

    # add everything from either the beginning of the chunk or the
    # last balanced tag in the chunk to the list

    if { ! [string is space $remaining] } {
        adp_quote_chunk remaining remaining_quoted
        adp_append_string $remaining_quoted
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: