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

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@3HTML_CMDS
whitespace@12
variable@13b
whitespace@14
tag_end@15?]
text@17\n\n
tag_start@19[%
whitespace@21
html b@22b
whitespace@23
tag_end@24%]
text@26This is bold
tag_start@38[%
whitespace@40
end@41end
whitespace@44
tag_end@45%]
text@47\n\n
tag_start@49[%
whitespace@51
html b@52b
delimiter@53;
whitespace@54
squote string@55'This is bold'
delimiter@69;
whitespace@70
end@71end
whitespace@74
tag_end@75%]
text@77\n\n
tag_start@79[%
whitespace@81
html b@82b
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@110b
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@22b
text@26This is bold
text@47\n\n
html keyword element@52b
squote string element@55'This is bold'
text@77\n\n
html keyword element@82b
squote string element@86'This is bold'
text@105\n\n
html keyword element@110b
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>