TT3: /home/abw/web/london/tt3/slides/examples/html_ul_li.tt3

Template Source

[? HTML_CMDS ul li ?] [% ul { li 'Example One' li 'Example Two' li 'Example Three' } %] --EOF--

Source Tokens

tag_start@0[?
whitespace@2
control htmlcmds@3HTML_CMDS
whitespace@12
variable@13ul
whitespace@15
variable@16li
whitespace@18
tag_end@19?]
text@21\n\n
tag_start@23[%
whitespace@25
html ul@26ul
whitespace@28
construct hash@29{
whitespace@30\n
html li@36li
whitespace@38
squote string@39'Example One'
whitespace@52\n
html li@58li
whitespace@60
squote string@61'Example Two'
whitespace@74\n
html li@80li
whitespace@82
squote string@83'Example Three'
whitespace@98\n
terminator@102}
whitespace@103\n
tag_end@104%]
text@106\n
eof@107

Parse Tree

text@21\n\n
html keyword element@26ul
html keyword element@36li
squote string element@39'Example One'
html keyword element@58li
squote string element@61'Example Two'
html keyword element@80li
squote string element@83'Example Three'
text@106\n

Variables Used

Generated Output

<ul><li>Example One</li><li>Example Two</li><li>Example Three</li></ul>