NAME

Text::Template::Simple::Caller - Caller stack tracer for Text::Template::Simple

SYNOPSIS

use strict;
use Text::Template::Simple::Caller;
x();
sub x {  y() }
sub y {  z() }
sub z { print Text::Template::Simple::Caller->stack }

DESCRIPTION

Caller stack tracer for Text::Template::Simple. This module is not used directly inside templates. You must use the global template function insted. See Text::Template::Simple::Dummy for usage from the templates.

METHODS

stack

Class method. Accepts parameters as a single hashref:

my $dump = Text::Template::Simple::Caller->stack(\%opts);

frame

Integer. Defines how many call frames to go back. Default is zero (full list).

type

Defines the dump type. Available options are:

string

A simple text dump.

html_comment

Same as string, but the output wrapped with HTML comment codes:

<!-- [DUMP] -->
html_table

Returns the dump as a HTML table.

text_table

Uses the optional module Text::Table to format the dump.

AUTHOR

Burak Gürsoy, <burak@cpan.org>

COPYRIGHT

Copyright 2004-2007 Burak Gürsoy. All rights reserved.

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.