NAME

Top Close Open

Template:TT3::Element::Dquote - element representing "double quoted" strings

DESCRIPTION

Top Close Open

This module implements a subclass of Template::TT3::Element::String to represent "double quoted" text strings.

METHODS

Top Close Open

This module implements the following methods in addition to those inherited from the Template::TT3::Element::String , Template::TT3::Element::Literal , Template::TT3::Element , Template::TT3::Base and Badger::Base base classes.

parse_expr($token,$scope,$precedence)

Top Close Open

This method is called to parse a string as an expression.

parse_filename($token,$scope,$precedence)

Top Close Open

An alias to the parse_expr() method.

text($context)

Top Close Open

This method returns the content of the quoted string (i.e. not including the quote marks) stored in the EXPR slot. If the string contains any variable expressions then they will be evaluated and inserted into the output text generated.

value($context)

Top Close Open

An alias to the text() method.

values($context)

Top Close Open

An alias to the text() method.

view($view)

Top Close Open

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_dquote() method against the view object passed as the only argument, $view. It passes itself as an argument to the view_dquote() method.

AUTHOR

Top Close Open

Andy Wardley http://wardley.org

COPYRIGHT

Top Close Open

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.

SEE ALSO

Top Close Open

This module inherits methods from the Template::TT3::Element::String , 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.

The closely related Template::TT3::Class::Squote module implements an element used to represent 'single quoted' strings.


http://tt3.template-toolkit.org/docs/Template/TT3/Element/Dquote.pm last modified 2009-12-21 18:13:14