debian/0000755000000000000000000000000011502517453007171 5ustar debian/source/0000755000000000000000000000000011502517277010475 5ustar debian/source/format0000644000000000000000000000001411502515426011675 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011502517277010624 5ustar debian/patches/pod.patch0000644000000000000000000001420311502515426012421 0ustar Subject: Pod errors * 'parameter' consistently mispelt as 'paramter' * 'overridden' mispelt as 'overriden' * Modified code examples so that they are breakable in man pages. Author: Nicholas Bamber Last-Update: 2010-08-31 Bug: http://rt.cpan.org/Ticket/Display.html?id=60914 --- CGI-Application-Plugin-AnyTemplate-0.18.orig/lib/CGI/Application/Plugin/AnyTemplate.pm +++ CGI-Application-Plugin-AnyTemplate-0.18/lib/CGI/Application/Plugin/AnyTemplate.pm @@ -398,7 +398,7 @@ Normally, component embedding is handled by L. If you want to use a different class for this purpose, specify the class name as the -value of this paramter. +value of this parameter. It still has to provide the same interface as L. See the source @@ -638,7 +638,7 @@ generated, you can do so with the C configuration parameter. -If you call C with one paramter, it is taken to be either the +If you call C with one parameter, it is taken to be either the filename or a reference to a string containing the template text: my $template = $self->template->load('somefile'); @@ -648,7 +648,7 @@ appropriate extension will be added for this template type. If you call C with more than one parameter, then -you can specify filename and configuration paramters directly: +you can specify filename and configuration parameters directly: my $template = $self->template->load( file => 'some_file.tmpl', @@ -1039,7 +1039,7 @@ =head2 fill Fill is a convenience method which in a single step creates the -template, fills it with the template paramters and returns its output. +template, fills it with the template parameters and returns its output. You can call it with or without a filename (or string ref). --- CGI-Application-Plugin-AnyTemplate-0.18.orig/lib/CGI/Application/Plugin/AnyTemplate/Base.pm +++ CGI-Application-Plugin-AnyTemplate-0.18/lib/CGI/Application/Plugin/AnyTemplate/Base.pm @@ -154,7 +154,10 @@ called before each template is processed. Register a C callback as follows: - $self->add_callback('template_pre_process', \&my_tmpl_pre_process); + $self->add_callback( + 'template_pre_process', + \&my_tmpl_pre_process + ); Pre-process callbacks will be passed a reference to the C<$template> object, and can can modify the parameters passed into the template by @@ -179,7 +182,9 @@ After the template output is generated, the C hook is called. You can register a C callback as follows: - $self->add_callback('template_post_process', \&my_tmpl_post_process); + $self->add_callback('template_post_process', + \&my_tmpl_post_process + ); Any callbacks that you register to this hook will be called after each template is processed, and will be passed both a reference to the @@ -287,14 +292,16 @@ This is a virtual method and must be defined in the subclass. -The following paramters are passed to the driver and available as keys of the +The following parameters are passed to the driver and available as keys of the driver's C<$self> object: 'driver_config' => ... # hashref of driver-specific config - 'native_config' => ... # hashref of native template system specific config + 'native_config' => ... # hashref of native template system + # specific config 'include_paths' => ... # listref of template include paths 'filename' => ... # template filename - 'webapp' => ... # reference to the current CGI::Application $self + 'webapp' => ... # reference to the current + # CGI::Application $self =cut @@ -370,7 +377,7 @@ =item render_template -This method must be overriden in a subclass. It has the responsibility +This method must be overridden in a subclass. It has the responsibility of filling the template in C<< $self->filename >> with the values in C<< $self->param >> via the appropriate template system, and returning the output as either a string or a reference to a string. --- CGI-Application-Plugin-AnyTemplate-0.18.orig/lib/CGI/Application/Plugin/AnyTemplate/Driver/HTMLTemplate.pm +++ CGI-Application-Plugin-AnyTemplate-0.18/lib/CGI/Application/Plugin/AnyTemplate/Driver/HTMLTemplate.pm @@ -23,7 +23,7 @@ -I<(Support for parameter passing is limited. See the note on paramters below.)> +I<(Support for parameter passing is limited. See the note on parameters below.)> This can be overridden by the following configuration variables: --- CGI-Application-Plugin-AnyTemplate-0.18.orig/lib/CGI/Application/Plugin/AnyTemplate/Driver/HTMLTemplatePluggable.pm +++ CGI-Application-Plugin-AnyTemplate-0.18/lib/CGI/Application/Plugin/AnyTemplate/Driver/HTMLTemplatePluggable.pm @@ -26,7 +26,11 @@ The L syntax for embedding components is: - + This can be overridden by the following configuration variables: @@ -57,7 +61,7 @@ =head1 CONFIGURATION -The L driver +The L driver accepts the following config parameters: =over 4 @@ -79,7 +83,7 @@ B If this config parameter is true, then -L will +L will copy all of the webapp's query params into the template using L's C mechanism: debian/patches/series0000644000000000000000000000001211502515426012024 0ustar pod.patch debian/rules0000755000000000000000000000003611502515434010245 0ustar #!/usr/bin/make -f %: dh $@ debian/libcgi-application-plugin-anytemplate-perl.docs0000644000000000000000000000000511502515434020342 0ustar TODO debian/compat0000644000000000000000000000000211502515434010364 0ustar 8 debian/control0000644000000000000000000000341411502515434010573 0ustar Source: libcgi-application-plugin-anytemplate-perl Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libcgi-application-perl, libtest-pod-perl, libtest-pod-coverage-perl, libclone-perl, libexporter-renaming-perl, libcgi-application-basic-plugin-bundle-perl Maintainer: Debian Perl Group Uploaders: Nicholas Bamber , Jaldhar H. Vyas Standards-Version: 3.9.1 Homepage: http://search.cpan.org/dist/CGI-Application-Plugin-AnyTemplate/ Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcgi-application-plugin-anytemplate-perl/ Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libcgi-application-plugin-anytemplate-perl/ Package: libcgi-application-plugin-anytemplate-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libcgi-application-perl, libcgi-application-basic-plugin-bundle-perl Replaces: libcgi-application-extra-plugin-bundle-perl (<< 0.3) Breaks: libcgi-application-extra-plugin-bundle-perl (<< 0.3) Suggests: libcgi-application-extra-plugin-bundle-perl (>= 0.3), libexporter-renaming-perl Description: module supporting any templating system in CGI::Application CGI::Application::Plugin::AnyTemplate allows you to use any supported Perl templating system using a single consistent interface. Currently supported templating systems include HTML::Template, HTML::Template::Expr, HTML::Template::Pluggable, Template::Toolkit, Template and Petal. You can access any of these templating systems using the same interface. In this way, you can use the same code and switch templating systems on the fly. This approach has many uses. For instance, it can be useful in migrating your application from one templating system to another. debian/changelog0000644000000000000000000000030011502517171011031 0ustar libcgi-application-plugin-anytemplate-perl (0.18-1) unstable; urgency=low * Initial Release. (Closes: #605522) -- Nicholas Bamber Wed, 8 Dec 2010 07:25:33 +0000 debian/watch0000644000000000000000000000024111502515434010214 0ustar version=3 http://search.cpan.org/dist/CGI-Application-Plugin-AnyTemplate/ .*/CGI-Application-Plugin-AnyTemplate-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/copyright0000644000000000000000000000214611502515434011124 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Maintainer: Michael Graham Source: http://search.cpan.org/dist/CGI-Application-Plugin-AnyTemplate/ Name: CGI-Application-Plugin-AnyTemplate Files: * Copyright: 2005, Michael Graham License: Artistic or GPL-1+ Files: debian/* Copyright: 2010, Nicholas Bamber License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the General Public License can be found in `/usr/share/common-licenses/GPL-1'.