TT3: /home/abw/web/london/tt3/slides/examples/html_ul_li.tt3
Source
Tokens
Tree
Variables
Output
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
@3
HTML_CMDS
whitespace
@12
variable
@13
ul
whitespace
@15
variable
@16
li
whitespace
@18
tag_end
@19
?]
text
@21
\n\n
tag_start
@23
[%
whitespace
@25
html ul
@26
ul
whitespace
@28
construct hash
@29
{
whitespace
@30
\n
html li
@36
li
whitespace
@38
squote string
@39
'Example One'
whitespace
@52
\n
html li
@58
li
whitespace
@60
squote string
@61
'Example Two'
whitespace
@74
\n
html li
@80
li
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
@26
ul
html keyword element
@36
li
squote string element
@39
'Example One'
html keyword element
@58
li
squote string element
@61
'Example Two'
html keyword element
@80
li
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>