%%intolayout/main%%blockheader This is a new header for this section.
It's a block so you can't re-define it.
%%end%%slotcontent This is some new default content for this section.
It's a slot so you can over-ride it.
%%end%%end--EOF--
Source Tokens
tag_start@0%%
whitespace@2
command into@4into
whitespace@8
filename@9layout
filename@15/
filename@16main
tag_end@20\n
tag_start@21%%
whitespace@23
command block@29block
whitespace@34
filename@35header
tag_end@41\n
text@42 This is a new header for this section.\n It's a block so you can't re-define it.\n
tag_start@145%%
whitespace@147
end@153end
tag_end@156\n\n
tag_start@158%%
whitespace@160
command slot@166slot
whitespace@170
filename@171content
tag_end@178\n
text@179 This is some new default content for this section. \n It's a slot so you can over-ride it.\n
tag_start@293%%
whitespace@295
end@301end
tag_end@304\n
tag_start@305%%
whitespace@307
end@309end
tag_end@312 \n
eof@314
Parse Tree
into keyword@4into
Template
filename element@9layout/main
Block
block keyword@29block
Name
filename element@35header
Block
text@42 This is a new header for this section.\n It's a block so you can't re-define it.\n
slot keyword@166slot
Name
filename element@171content
Block
text@179 This is some new default content for this section. \n It's a slot so you can over-ride it.\n
Variables Used
Generated Output
TT3 resource error at line 1 of /home/abw/web/london/tt3/slides/examples/sub_slots.tt3:
Error: Requested template resource not found: layout/main