TT3: /home/abw/web/london/tt3/slides/examples/just_fill_vars.tt3
Source
Tokens
Tree
Variables
Output
Template Source
[%
just
x
=
10
,
y
=
20
fill
example
/
x_plus_y
%]
--EOF--
Source Tokens
tag_start
@0
[%
whitespace
@2
command just
@4
just
whitespace
@8
variable
@9
x
operator assign
@10
=
number
@11
10
separator
@13
,
whitespace
@14
variable
@15
y
operator assign
@16
=
number
@17
20
whitespace
@19
\n
command fill
@24
fill
whitespace
@28
filename
@29
example
filename
@36
/
filename
@37
x_plus_y
whitespace
@45
\n
tag_end
@46
%]
text
@48
\n
eof
@49
Parse Tree
just keyword
@4
just
Data
binary expr
@10
x = 10
variable element
@9
x
=
number element
@11
10
binary expr
@16
y = 20
variable element
@15
y
=
number element
@17
20
Block
fill keyword
@24
fill
Template
filename element
@29
example/x_plus_y
text
@48
\n
Variables Used
x
Uses
@ line 1
[% just
x
=10, y=20
y
Uses
@ line 1
[% just x=10,
y
=20
Generated Output
TT3 resource error at line 2 of /home/abw/web/london/tt3/slides/examples/just_fill_vars.tt3:
Error:
Requested template resource not found: example/x_plus_y
Source:
fill example/x_plus_y
^ here