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

Template Source

[% with title='Hello World' fill site/header %] --EOF--

Source Tokens

tag_start@0[%
whitespace@2
command with@4with
whitespace@8
variable@9title
operator assign@14=
squote string@15'Hello World'
whitespace@28\n
command fill@37fill
whitespace@41
filename@42site
filename@46/
filename@47header
whitespace@53\n
tag_end@54%]
text@56\n
eof@57

Parse Tree

with keyword@4with
Data
binary expr@14title = 'Hello World'
variable element@9title
=
squote string element@15'Hello World'
Block
fill keyword@37fill
Template
filename element@42site/header
text@56\n

Variables Used

title
Uses
@ line 1[% with title='Hello World'

Generated Output

TT3 resource error at line 2 of /home/abw/web/london/tt3/slides/examples/with_fill.tt3:
Error: Requested template resource not found: site/header
Source: fill site/header
^ here