TT3: /home/abw/web/london/tt3/slides/examples/fill_slots.tt3
Source
Tokens
Tree
Variables
Output
Template Source
%%
fill
layout
/
main
%%
block
header
This is a new header
%%
end
%%
block
content
This is some new content
%%
end
--EOF--
Source Tokens
tag_start
@0
%%
whitespace
@2
command fill
@4
fill
whitespace
@8
filename
@9
layout
filename
@15
/
filename
@16
main
tag_end
@20
\n\n
tag_start
@22
%%
whitespace
@24
command block
@26
block
whitespace
@31
filename
@32
header
tag_end
@38
\n
text
@39
This is a new header\n
tag_start
@68
%%
whitespace
@70
end
@72
end
tag_end
@75
\n\n
tag_start
@77
%%
whitespace
@79
command block
@81
block
whitespace
@86
filename
@87
content
tag_end
@94
\n
text
@95
This is some new content\n
tag_start
@128
%%
whitespace
@130
end
@132
end
tag_end
@135
\n
eof
@136
Parse Tree
fill keyword
@4
fill
Template
filename element
@9
layout/main
block keyword
@26
block
Name
filename element
@32
header
Block
text
@39
This is a new header\n
block keyword
@81
block
Name
filename element
@87
content
Block
text
@95
This is some new content\n
Variables Used
Generated Output
TT3 resource error at line 1 of /home/abw/web/london/tt3/slides/examples/fill_slots.tt3:
Error:
Requested template resource not found: layout/main
Source:
%% fill layout/main
^ here