TT3: /home/abw/web/london/tt3/slides/examples/side_effect_with.tt3
Source
Tokens
Tree
Variables
Output
Template Source
[%
with
title
=
'Hello World'
fill
site
/
header
%]
[%
fill
site
/
header
with
title
=
'Hello World'
%]
--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
\n
command fill
@37
fill
whitespace
@41
filename
@42
site
filename
@46
/
filename
@47
header
whitespace
@53
\n
tag_end
@54
%]
text
@56
\n\n
tag_start
@58
[%
whitespace
@60
command fill
@62
fill
whitespace
@66
filename
@67
site
filename
@71
/
filename
@72
header
whitespace
@78
\n
command with
@87
with
whitespace
@91
variable
@92
title
operator assign
@97
=
squote string
@98
'Hello World'
whitespace
@111
\n
tag_end
@112
%]
text
@114
\n
eof
@115
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
@37
fill
Template
filename element
@42
site/header
text
@56
\n\n
with keyword
@87
with
Data
binary expr
@97
title = 'Hello World'
variable element
@92
title
=
squote string element
@98
'Hello World'
Block
fill keyword
@62
fill
Template
filename element
@67
site/header
text
@114
\n
Variables Used
title
Uses
@ line 1
[% with
title
='Hello World'
@ line 6
with
title
='Hello World'
Generated Output
TT3 resource error at line 2 of /home/abw/web/london/tt3/slides/examples/side_effect_with.tt3:
Error:
Requested template resource not found: site/header
Source:
fill site/header
^ here