cgi::application::plugin::debugscreen(3pm) [debian man page]
CGI::Application::Plugin::DebugScreen(3pm) User Contributed Perl Documentation CGI::Application::Plugin::DebugScreen(3pm)NAME
CGI::Application::Plugin::DebugScreen - add Debug support to CGI::Application.
VERSION
This documentation refers to CGI::Application::Plugin::DebugScreen version 1.00
SYNOPSIS
use CGI::Application::Plugin::DebugScreen;
That is it! The fun starts when a run mode calls "die".
DESCRIPTION
This plug-in adds stack tracing support to CGI::Application similar in style to the Catalyst debug mode. In the event of the module calling
"die", a stack trace of the error is displayed. At each level of the stack links to the code and documentation are provided.
The stack trace functionality is deactivated unless the $ENV{CGI_APP_DEBUG} environment variable is set. Therefore when your code is
released, this plug-in does not need to be removed.
The links links to code and documentation are implemented using CGI::Application::Plugin::ViewCode, which will be loaded automatically if
available. However these links are not supported in conjunction with CGI::Application::Dispatch.
DEPENDENCIES
strict
warnings
CGI::Application
HTML::Template
Devel::StackTrace
IO::File
CGI::Application::Plugin::ViewCode
UNIVERSAL::require
BUGS AND LIMITATIONS
There are no known bugs in this module. Please report problems to Atsushi Kobayashi (<nekokak@cpan.org>) Patches are welcome.
SEE ALSO
CGI::Application::Plugin::ViewCode
Sledge::Plugin::DebugScreen
CGI::Carp::DebugScreen
Catalyst::Plugin::StackTrace
Thanks To
MATSUNO Tokuhiro (MATSUNO)
Koichi Taniguchi (TANIGUCHI)
Masahiro Nagano (KAZEBURO)
Tomoyuki Misonou
AUTHOR
Atsushi Kobayashi, <nekokak@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Atsushi Kobayashi (<nekokak@cpan.org>). All rights reserved.
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself. See perlartistic.
perl v5.12.3 2011-06-26 CGI::Application::Plugin::DebugScreen(3pm)
Check Out this Related Man Page
CGI ::Application::Plugin::AnyTemplate::Driver::HTMLTemplUserxContributed Perl CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplateExpr(3pm)NAME
CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplateExpr - HTML::Template::Expr driver to AnyTemplate
DESCRIPTION
This is a driver for CGI::Application::Plugin::AnyTemplate, which provides the implementation details specific to rendering templates via
the HTML::Template::Expr templating system.
All "AnyTemplate" drivers are designed to be used the same way. For general usage instructions, see the documentation of
CGI::Application::Plugin::AnyTemplate.
EMBEDDED COMPONENT SYNTAX (HTML::Template::Expr)
Syntax
The HTML::Template::Expr syntax for embedding components is:
<TMPL_VAR EXPR="CGIAPP_embed('some_run_mode', param1, param2, 'literal string3')">
This can be overridden by the following configuration variables:
embed_tag_name # default 'CGIAPP_embed'
For instance by setting the following value in your configuration file:
embed_tag_name '__ACME_render'
Then the embedded component tag will look like:
<TMPL_VAR EXPR="__ACME_render('some_run_mode')">
The value of "embed_tag_name" must consist of numbers, letters and underscores ("_"), and must not begin with a number.
CONFIGURATION
The CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplateExpr driver accepts the following config parameters:
embed_tag_name
The name of the tag used for embedding components. Defaults to "CGIAPP_embed".
template_extension
If "auto_add_template_extension" is true, then CGI::Application::Plugin::AnyTemplate will append the value of "template_extension" to
"filename". By default the "template_extension" is ".html".
associate_query
This feature is now deprecated and will be removed in a future release.
If this config parameter is true, then CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplateExpr will copy all of the webapp's
query params into the template using HTML::Template::Expr's "associate" mechanism:
my $driver = HTML::Template::Expr->new(
associate => $self->query,
);
By default "associate_query" is false.
If you provide an "associate" config parameter of your own, that will disable the "associate_query" functionality.
All other configuration parameters are passed on unchanged to HTML::Template::Expr.
required_modules
The "required_modules" function returns the modules required for this driver to operate. In this case: "HTML::Template::Expr".
DRIVER METHODS
initialize
Initializes the "HTMLTemplateExpr" driver. See the docs for CGI::Application::Plugin::AnyTemplate::Base for details.
render_template
Fills the HTML::Template::Expr object with "$self->param", and returns the output (as a string reference).
See the docs for CGI::Application::Plugin::AnyTemplate::Base for details.
SEE ALSO
CGI::Application::Plugin::AnyTemplate
CGI::Application::Plugin::AnyTemplate::Base
CGI::Application::Plugin::AnyTemplate::ComponentHandler
CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplate
CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplatePluggable
CGI::Application::Plugin::AnyTemplate::Driver::TemplateToolkit
CGI::Application::Plugin::AnyTemplate::Driver::Petal
CGI::Application
Template::Toolkit
HTML::Template
HTML::Template::Pluggable
HTML::Template::Plugin::Dot
Petal
Exporter::Renaming
CGI::Application::Plugin::TT
AUTHOR
Michael Graham, "<mgraham@cpan.org>"
COPYRIGHT & LICENSE
Copyright 2005 Michael Graham, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.12010-12-16CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplateExpr(3pm)