Codebase list libhtml-template-perl / fresh-snapshots/main
New upstream snapshot. Debian Janitor 1 year, 4 months ago
11 changed file(s) with 71 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
0 2.98 In development.
1 - Added Unicode tests [Vytas Dauksa]
2
03 2.97 Thu May 18 2017
14 - Change internal module name HTML::Template::DEFAULT to
25 HTML::Template::DEF to avoid conflict with
291291
292292 - "Package" refers to the collection of files distributed by the Copyright
293293 Holder, and derivatives of that collection of files created through
294 textual modification.
294 textual modification.
295295 - "Standard Version" refers to such a Package if it has not been modified,
296296 or has been modified in accordance with the wishes of the Copyright
297 Holder.
297 Holder.
298298 - "Copyright Holder" is whoever is named in the copyright or copyrights for
299 the package.
299 the package.
300300 - "You" is you, if you're thinking about copying or distributing this Package.
301301 - "Reasonable copying fee" is whatever you can justify on the basis of media
302302 cost, duplication charges, time of people involved, and so on. (You will
303303 not be required to justify it to the Copyright Holder, but only to the
304 computing community at large as a market that must bear the fee.)
304 computing community at large as a market that must bear the fee.)
305305 - "Freely Available" means that no fee is charged for the item itself, though
306306 there may be fees involved in handling the item. It also means that
307307 recipients of the item may redistribute it under the same conditions they
308 received it.
308 received it.
309309
310310 1. You may make and give away verbatim copies of the source form of the
311311 Standard Version of this Package without restriction, provided that you
372372
373373 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
374374 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
375 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
375 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
376376
377377 The End
378378
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043.
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025.
11 Changes
22 LICENSE
33 MANIFEST
2323 t/03-else_else_bug.t
2424 t/04-default-escape.t
2525 t/04-default_with_escape.t
26 t/04-escape-unicode.t
2627 t/04-escape.t
2728 t/04-no_taintmode.t
2829 t/04-type-source.t
22 author:
33 - 'Michael Peters <mpeters@plusthree.com>'
44 build_requires:
5 CGI: '0'
56 File::Temp: '0'
67 Test::More: '0'
78 Test::Pod: '0'
89 configure_requires:
910 ExtUtils::MakeMaker: '0'
1011 dynamic_config: 0
11 generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005'
12 generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'
1213 license: perl
1314 meta-spec:
1415 url: http://module-build.sourceforge.net/META-spec-v1.4.html
1516 version: '1.4'
1617 name: HTML-Template
1718 requires:
18 CGI: '0'
1919 Carp: '0'
2020 Digest::MD5: '0'
2121 File::Spec: '0.82'
2323 resources:
2424 bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Template
2525 repository: git://github.com/mpeters/html-template.git
26 version: '2.97'
26 version: '2.98'
27 x_generated_by_perl: v5.36.0
28 x_serialization_backend: 'YAML::Tiny version 1.73'
29 x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043.
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025.
11 use strict;
22 use warnings;
33
1515 "LICENSE" => "perl",
1616 "NAME" => "HTML::Template",
1717 "PREREQ_PM" => {
18 "CGI" => 0,
1918 "Carp" => 0,
2019 "Digest::MD5" => 0,
2120 "File::Spec" => "0.82",
2221 "Scalar::Util" => 0
2322 },
2423 "TEST_REQUIRES" => {
24 "CGI" => 0,
2525 "File::Temp" => 0,
2626 "Test::More" => 0,
2727 "Test::Pod" => 0
2828 },
29 "VERSION" => "2.97",
29 "VERSION" => "2.98",
3030 "test" => {
3131 "TESTS" => "t/*.t"
3232 }
0
1
20 This archive contains the distribution HTML-Template,
3 version 2.97:
1 version 2.98:
42
53 Perl module to use HTML-like templating language
64
108 the same terms as the Perl 5 programming language system itself.
119
1210
13 This README file was generated by Dist::Zilla::Plugin::Readme v5.043.
14
11 This README file was generated by Dist::Zilla::Plugin::Readme v6.025.
0 libhtml-template-perl (2.97+git20170922.1.c2937e0-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Tue, 20 Dec 2022 07:40:37 -0000
5
06 libhtml-template-perl (2.97-2) unstable; urgency=medium
17
28 [ Laurent Baillet ]
1515 File::Spec = 0.82
1616 Digest::MD5 = 0
1717 Scalar::Util = 0
18 CGI = 0
1918
2019 [Prereqs / TestRequires]
2120 File::Temp = 0
2221 Test::More = 0
2322 Test::Pod = 0
23 CGI = 0
2424
2525 [MetaResources]
2626 bugtracker.web = https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Template
00 package HTML::Template;
11
2 $HTML::Template::VERSION = '2.97';
2 $HTML::Template::VERSION = '2.98';
33
44 =head1 NAME
55
0 use strict;
1 use warnings;
2 use utf8;
3
4 use open ':std', ':encoding(utf8)';
5 use Test::More (tests => 10);
6 use_ok('HTML::Template');
7
8 while (<DATA>) {
9 chomp;
10 next if /^$/;
11 next if /^#/;
12 my ($text, $given, $wanted) = split /\|/;
13 my $template = HTML::Template->new(
14 scalarref => \$text,
15 default_escape => "HTML"
16 );
17
18 undef $given if $given eq 'undef';
19 $template->param(foo => $given);
20 my $output = $template->output;
21 is($output, $wanted, $text);
22 }
23
24 # use pipe as the seperator between fields.
25 # the TMPL_VAR name should always be 'foo'
26 # fields: TMPL_VAR|given string|escaped string
27
28 __DATA__
29 # use default escaping
30 <TMPL_VAR foo>|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
31 <TMPL_VAR name=foo>|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
32 <TMPL_VAR name='foo'>|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
33 <TMPL_VAR NAME="foo">|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
34 <!-- TMPL_VAR foo -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
35 <!-- TMPL_VAR name=foo -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
36 <!-- TMPL_VAR NAME=foo -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
37 <!-- TMPL_VAR name='foo' -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
38 <!-- TMPL_VAR NAME="foo" -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
11
22 BEGIN {
33 unless ($ENV{AUTHOR_TESTING}) {
4 require Test::More;
5 Test::More::plan(skip_all => 'these tests are for testing by the author');
4 print qq{1..0 # SKIP these tests are for testing by the author\n};
5 exit
66 }
77 }
88