This module implements a subclass of Template::TT3::Element for representing bare words.
This module implements the following methods in addition to those inherited from the Template::TT3::Element::Literal , Template::TT3::Element , Template::TT3::Base and Badger::Base base classes.
This method is called when a word appears at the start of an expressions. It upgrades (re-blesses) the word element to a variable object and then calls its parse_expr() method.
In summary, if you ask a word to be an expression then it silently becomes a variable expression.
This method is called when a word appears immediately after a dot operator.
It advances the element referenced by the $token
pointer and returns
$self
to indicate that it is a syntactically valid dot operation.
This method is called by a
Template::TT3::View
object as part of the double
dispatch process that is used to render views of template elements. It calls
the view_word()
method against the view object passed as the only
argument, $view
. It passes itself as an argument to the view_word()
method.
Andy Wardley http://wardley.org
Copyright (C) 1996-2009 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This module inherits methods from the Template::TT3::Element::Literal , Template::TT3::Element , Template::TT3::Base and Badger::Base base classes.
It is constructed using the Template::TT3::Class::Element class metaprogramming module.