TT3: /home/abw/web/london/tt3/slides/examples/html_simple.tt3
Source
Tokens
Tree
Variables
Output
Template Source
[?
HTML_CMDS
b
?]
[%
b
%]
This is bold
[%
end
%]
[%
b
;
'This is bold'
;
end
%]
[%
b
{
'This is bold'
}
%]
[%
b
'This is bold'
%]
--EOF--
Source Tokens
tag_start
@0
[?
whitespace
@2
control htmlcmds
@3
HTML_CMDS
whitespace
@12
variable
@13
b
whitespace
@14
tag_end
@15
?]
text
@17
\n\n
tag_start
@19
[%
whitespace
@21
html b
@22
b
whitespace
@23
tag_end
@24
%]
text
@26
This is bold
tag_start
@38
[%
whitespace
@40
end
@41
end
whitespace
@44
tag_end
@45
%]
text
@47
\n\n
tag_start
@49
[%
whitespace
@51
html b
@52
b
delimiter
@53
;
whitespace
@54
squote string
@55
'This is bold'
delimiter
@69
;
whitespace
@70
end
@71
end
whitespace
@74
tag_end
@75
%]
text
@77
\n\n
tag_start
@79
[%
whitespace
@81
html b
@82
b
whitespace
@83
construct hash
@84
{
whitespace
@85
squote string
@86
'This is bold'
whitespace
@100
terminator
@101
}
whitespace
@102
tag_end
@103
%]
text
@105
\n\n
tag_start
@107
[%
whitespace
@109
html b
@110
b
whitespace
@111
squote string
@112
'This is bold'
whitespace
@126
tag_end
@127
%]
text
@129
\n\n
eof
@131
Parse Tree
text
@17
\n\n
html keyword element
@22
b
text
@26
This is bold
text
@47
\n\n
html keyword element
@52
b
squote string element
@55
'This is bold'
text
@77
\n\n
html keyword element
@82
b
squote string element
@86
'This is bold'
text
@105
\n\n
html keyword element
@110
b
squote string element
@112
'This is bold'
text
@129
\n\n
Variables Used
Generated Output
<b>This is bold</b> <b>This is bold</b> <b>This is bold</b> <b>This is bold</b>