TT3: /home/abw/web/london/tt3/slides/examples/hello_world.tt3
Source
Tokens
Tree
Variables
Output
Template Source
Hello
[%
name
or
'World'
%]
!
--EOF--
Source Tokens
text
@0
Hello
tag_start
@6
[%
whitespace
@8
variable
@9
name
whitespace
@13
binary operator
@14
or
whitespace
@16
squote string
@17
'World'
whitespace
@24
tag_end
@25
%]
text
@27
!\n
eof
@29
Parse Tree
text
@0
Hello
binary expr
@14
name or 'World'
variable element
@9
name
or
squote string element
@17
'World'
text
@27
!\n
Variables Used
name
Uses
@ line 1
Hello [%
name
or 'World' %]!
Generated Output
Hello World!