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

Template Source

[% your_object # $your_object->tt_text; $your_object # $your_object->tt_value; @your_object # $your_object->tt_items; %your_object # $your_object->tt_pairs; %]--EOF--

Source Tokens

tag_start@0[%
whitespace@2
variable@4your_object
whitespace@15 # $your_object->tt_text;\n\n
sigil item@54$
variable@55your_object
whitespace@66 # $your_object->tt_value;\n
sigil list@104@
variable@105your_object
whitespace@116 # $your_object->tt_items;\n
sigil hash@154%
variable@155your_object
whitespace@166 # $your_object->tt_pairs;\n
tag_end@200%]
eof@202

Parse Tree

variable element@4your_object
Template::TT3::Element::Sigil::Item=ARRAY(0xa0c728)
Template::TT3::Element::Sigil::List=ARRAY(0xa15ddc)
Template::TT3::Element::Sigil::Hash=ARRAY(0xa01c10)

Variables Used

your_object
Uses
@ line 1[% your_object # $your_object->tt_text;
@ line 3 $your_object # $your_object->tt_value;
@ line 4 @your_object # $your_object->tt_items;
@ line 5 %your_object # $your_object->tt_pairs;

Generated Output

TT3 undefined data error at line 1 of /home/abw/web/london/tt3/slides/examples/sigil_objects.tt3:
Error: Undefined value returned by expression: your_object
Source: [% your_object # $your_object->tt_text;
^ here