TT3: /home/abw/web/london/tt3/slides/examples/with_fill_braced.tt3
Source
Tokens
Tree
Variables
Output
Template Source
[%
with
title
=
'Hello World'
{
fill
site
/
header
}
%]
--EOF--
Source Tokens
tag_start
@0
[%
whitespace
@2
command with
@4
with
whitespace
@8
variable
@9
title
operator assign
@14
=
squote string
@15
'Hello World'
whitespace
@28
construct hash
@29
{
whitespace
@30
\n
command fill
@39
fill
whitespace
@43
filename
@44
site
filename
@48
/
filename
@49
header
whitespace
@55
\n
terminator
@60
}
whitespace
@61
\n
tag_end
@62
%]
text
@64
\n
eof
@65
Parse Tree
with keyword
@4
with
Data
binary expr
@14
title = 'Hello World'
variable element
@9
title
=
squote string element
@15
'Hello World'
Block
fill keyword
@39
fill
Template
filename element
@44
site/header
text
@64
\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_braced.tt3:
Error:
Requested template resource not found: site/header
Source:
fill site/header
^ here