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

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@4fill
whitespace@8
filename@9layout
filename@15/
filename@16main
tag_end@20\n\n
tag_start@22%%
whitespace@24
command block@26block
whitespace@31
filename@32header
tag_end@38\n
text@39 This is a new header\n
tag_start@68%%
whitespace@70
end@72end
tag_end@75\n\n
tag_start@77%%
whitespace@79
command block@81block
whitespace@86
filename@87content
tag_end@94\n
text@95 This is some new content\n
tag_start@128%%
whitespace@130
end@132end
tag_end@135\n
eof@136

Parse Tree

fill keyword@4fill
Template
filename element@9layout/main
block keyword@26block
Name
filename element@32header
Block
text@39 This is a new header\n
block keyword@81block
Name
filename element@87content
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