| Text-Template-Simple documentation | Contained in the Text-Template-Simple distribution. |
Text::Template::Simple::Dummy - Container class
TODO
This document describes version 0.83 of Text::Template::Simple::Dummy
released on 9 February 2011.
All templates are compiled into this class.
Text::Template::Simple::Dummy contains some utility functions
that are accessible by all templates.
Issues a full stack trace and returns the output as string dump. Accepts options as a hashref:
stack({ opt => $option, frame => $backtrace_level });
Can be used inside templates like this:
<%= stack() %>
See Text::Template::Simple::Caller for more information.
Burak Gursoy <burak@cpan.org>.
Copyright 2004 - 2011 Burak Gursoy. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.1 or, at your option, any later version of Perl 5 you may have available.
| Text-Template-Simple documentation | Contained in the Text-Template-Simple distribution. |
package Text::Template::Simple::Dummy; # Dummy Plug provided by the nice guy Mr. Ikari from NERV :p # All templates are compiled into this package. # You can define subs/methods here and then access # them inside templates. It is also possible to declare # and share package variables under strict (safe mode can # have problems though). See the Pod for more info. use strict; use warnings; use vars qw($VERSION); use Text::Template::Simple::Caller; use Text::Template::Simple::Util qw(); $VERSION = '0.83'; sub stack { # just a wrapper my $opt = shift || {}; Text::Template::Simple::Util::fatal('tts.caller.stack.hash') if ! Text::Template::Simple::Util::ishref($opt); $opt->{frame} = 1; return Text::Template::Simple::Caller->stack( $opt ); } 1; __END__