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):
- 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