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

Template Source

[% just x=10, y=20 fill example/x_plus_y %] --EOF--

Source Tokens

tag_start@0[%
whitespace@2
command just@4just
whitespace@8
variable@9x
operator assign@10=
number@1110
separator@13,
whitespace@14
variable@15y
operator assign@16=
number@1720
whitespace@19\n
command fill@24fill
whitespace@28
filename@29example
filename@36/
filename@37x_plus_y
whitespace@45\n
tag_end@46%]
text@48\n
eof@49

Parse Tree

just keyword@4just
Data
binary expr@10x = 10
variable element@9x
=
number element@1110
binary expr@16y = 20
variable element@15y
=
number element@1720
Block
fill keyword@24fill
Template
filename element@29example/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