r27477 - in /trunk/libtemplate-declare-perl: Changes META.yml SIGNATURE debian/changelog debian/copyright lib/Template/Declare.pm lib/Template/Declare/TagSet/XUL.pm lib/Template/Declare/Tags.pm t/wrappers.t

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Sun Nov 30 13:59:26 UTC 2008


Author: ansgar-guest
Date: Sun Nov 30 13:59:23 2008
New Revision: 27477

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27477
Log:
new upstream release (includes license statement)

Modified:
    trunk/libtemplate-declare-perl/Changes
    trunk/libtemplate-declare-perl/META.yml
    trunk/libtemplate-declare-perl/SIGNATURE
    trunk/libtemplate-declare-perl/debian/changelog
    trunk/libtemplate-declare-perl/debian/copyright
    trunk/libtemplate-declare-perl/lib/Template/Declare.pm
    trunk/libtemplate-declare-perl/lib/Template/Declare/TagSet/XUL.pm
    trunk/libtemplate-declare-perl/lib/Template/Declare/Tags.pm
    trunk/libtemplate-declare-perl/t/wrappers.t

Modified: trunk/libtemplate-declare-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/Changes?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/Changes (original)
+++ trunk/libtemplate-declare-perl/Changes Sun Nov 30 13:59:23 2008
@@ -1,3 +1,7 @@
+0.30 - 2008-11-26
+* Remove the "wrapper" export, its name is too generic and clashes with a lot
+  of existing code. It's a negligible amount of sugar.
+
 0.29 - 2008-07-01
 * Sugar for defining a tag-like wrapper. Thanks Theory! #37624
 * Don't load all of CGI.pm to get a list of tags. #37630

Modified: trunk/libtemplate-declare-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/META.yml?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/META.yml (original)
+++ trunk/libtemplate-declare-perl/META.yml Sun Nov 30 13:59:23 2008
@@ -22,4 +22,4 @@
   Class::Data::Inheritable: 0
   Class::ISA: 0
   perl: 5.8.2
-version: 0.29
+version: 0.30

Modified: trunk/libtemplate-declare-perl/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/SIGNATURE?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/SIGNATURE (original)
+++ trunk/libtemplate-declare-perl/SIGNATURE Sun Nov 30 13:59:23 2008
@@ -14,10 +14,10 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 7b9e6b7786c4b0b5a2b35de650cccf07a63079e5 Changes
+SHA1 338d458ddb8b6011e092c3aac28631611de1d25d Changes
 SHA1 7fbbcd669ac51b68a1242b07080453ac1f6a2080 MANIFEST
 SHA1 6f70228d55d21d8a18d86c6d9acb1a9d5a5504fe MANIFEST.SKIP
-SHA1 a434408c2bd10bd043d01704a3678b5be3a0630b META.yml
+SHA1 b0bcb47bc50a04250a31a83bd54fc89742a7fbc5 META.yml
 SHA1 84a7277f9ccd12e4f6d1a619bef2e3721dca45fc Makefile.PL
 SHA1 65da83220e6bf55fec475fe014f90ad37a9f4969 README
 SHA1 8b836389e4bc170eb8d19b7296b2f4978ac36136 inc/Module/Install.pm
@@ -28,14 +28,14 @@
 SHA1 ba005818ee9f97146bfa4e14e53c684e9e446902 inc/Module/Install/Metadata.pm
 SHA1 85e6b1cf5b7ca81bfb469a99389fa947d4b8a08e inc/Module/Install/Win32.pm
 SHA1 d32dff9f0d2f02023ca6d79a48d62fd855916351 inc/Module/Install/WriteAll.pm
-SHA1 3ff3854507c36d88ef8b99e95957dcf5552194eb lib/Template/Declare.pm
+SHA1 caab9236ee3567cd73e80113bf38e7a6e60feb42 lib/Template/Declare.pm
 SHA1 6b82d612faa1eb1e632f311a45034e6316626873 lib/Template/Declare/Buffer.pm
 SHA1 5b8295d842ccea0a21661583446344733f668879 lib/Template/Declare/TagSet.pm
 SHA1 a4b1d4e5e70b6bf928ceb7d6eeb73bc6b2d7d7a9 lib/Template/Declare/TagSet/HTML.pm
 SHA1 f95b68b4c50afcd1c66d225556dcfa2b2f18e619 lib/Template/Declare/TagSet/RDF.pm
 SHA1 4899124cdf56c12fcc7ac1a2b3d99910ed5b8bbb lib/Template/Declare/TagSet/RDF/EM.pm
-SHA1 f648877df76723ac24627e926d34d1367fb10f82 lib/Template/Declare/TagSet/XUL.pm
-SHA1 3c45c49b1aeea5e3d8f3a5294429d1ebb9a701b3 lib/Template/Declare/Tags.pm
+SHA1 460ab0856c8aea75c81e8cb1e5fb287515b1b2bf lib/Template/Declare/TagSet/XUL.pm
+SHA1 07191bd71831cb77390c432d8a42ce8ab56ae65e lib/Template/Declare/Tags.pm
 SHA1 7b2832c140109b23ba669db59e5b357dd1d255ec t/99-pod-coverage.t
 SHA1 bb0da54f2b3f2d7955baa41ee458cb3d1887f475 t/99-pod.t
 SHA1 8de6d59c7ed7c771f9cdc5e2dbaef0c31c7ab439 t/MyTagSet.pm
@@ -75,12 +75,12 @@
 SHA1 1617716eb384026609ac80f505892af9dfbd3fac t/trivial.t
 SHA1 66f9ab5624ab7e3afd9a6b5940cc93291f560d01 t/utf8.t
 SHA1 888d388aac364fc1c07fc6d5e0ca5be67d41e46d t/utils.pl
-SHA1 0cb68b05e6640bc7dec24dae5a5e0f93c97e7c13 t/wrappers.t
+SHA1 6a76d87732069df9fa763e4e69a78eb0aff134ba t/wrappers.t
 SHA1 c07bcff77839e622b8b1ecffd492f5ccf0ab359c t/xss.t
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.7 (Darwin)
+Version: GnuPG v2.0.9 (GNU/Linux)
 
-iD8DBQFIk4ADsxfQtHhyRPoRAjtbAKCfjXVvDLmrUo7HasPitEA+OldMywCggF2W
-CCIXWJO3FrQ+6f2TRpjuNbY=
-=vJgG
+iEYEARECAAYFAkktx/8ACgkQMflWJZZAbqCvUwCfeHBL1MIiZk7hkApkEXYwuGCG
+JQoAn0og4+LjPBlB/W06u0Y/5qwMe84E
+=nvUt
 -----END PGP SIGNATURE-----

Modified: trunk/libtemplate-declare-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/debian/changelog?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/debian/changelog (original)
+++ trunk/libtemplate-declare-perl/debian/changelog Sun Nov 30 13:59:23 2008
@@ -1,10 +1,4 @@
-libtemplate-declare-perl (0.29-1) UNRELEASED; urgency=low
-
-  TODO: Where does "same as perl" in debian/copyright come from?
-  It is in Makefile.PL/META.yml, but is that enough?
-
-  [ AGOSTINI Yves ]
-  * licence statement fixed in upstream svn, will be ok for next cpan release
+libtemplate-declare-perl (0.30-1) unstable; urgency=low
 
   [ Ansgar Burchardt ]
   * New upstream release
@@ -22,7 +16,7 @@
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
     (source stanza).
 
- -- Ansgar Burchardt <ansgar at 43-1.org>  Sun, 03 Aug 2008 16:59:20 +0200
+ -- Ansgar Burchardt <ansgar at 43-1.org>  Sun, 30 Nov 2008 14:58:36 +0100
 
 libtemplate-declare-perl (0.28-1) unstable; urgency=low
 

Modified: trunk/libtemplate-declare-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/debian/copyright?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/debian/copyright (original)
+++ trunk/libtemplate-declare-perl/debian/copyright Sun Nov 30 13:59:23 2008
@@ -1,13 +1,12 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=226
 Upstream-Name: Template-Declare
-Upstream-Maintainer: Shawn M Moore
+Upstream-Maintainer: Alex Vandiver
 Upstream-Source: http://search.cpan.org/dist/Template-Declare/
 
 Files: *
-Copyright: © 2006-2007, Best Practical Solutions, LLC
+Copyright: © 2006-2008, Best Practical Solutions, LLC
 License: GPL-1+ | Artistic
- This program is free software; you can redistribute it and/or modify it
- under the same terms as Perl itself.
+ Template::Declare is distributed under the same terms as Perl itself.
  .
  Perl is distributed under the GNU General Public License, either version 1 or
  (at your option) any later version, and the Artistic License.
@@ -24,7 +23,8 @@
 
 Files: debian/*
 Copyright:
- © 2008, Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
+ © 2008, AGOSTINI Yves <agostini at univ-metz.fr>
+ © 2008, Ansgar Burchardt <ansgar at 43-1.org>
 License: GPL-1+ | Artistic
  This program is free software; you can redistribute it and/or modify it
  under the same terms as Perl itself.

Modified: trunk/libtemplate-declare-perl/lib/Template/Declare.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/lib/Template/Declare.pm?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/lib/Template/Declare.pm (original)
+++ trunk/libtemplate-declare-perl/lib/Template/Declare.pm Sun Nov 30 13:59:23 2008
@@ -7,7 +7,7 @@
 use Template::Declare::Buffer;
 use Class::ISA;
 
-our $VERSION = "0.29";
+our $VERSION = "0.30";
 
 use base 'Class::Data::Inheritable';
 __PACKAGE__->mk_classdata('roots');
@@ -740,6 +740,26 @@
 
    p { 'hello, world!' }
 
+=item *
+
+Look out! If the if block is the last block/statement and the condition part is evaluated to be 0:
+
+   p { if ( 0 ) { } }
+
+produces
+
+   <p>0</p>
+
+instead of the more intutive output:
+
+   <p></p>
+
+This's because 0 is the last expression, so it's returned as the value of the whole block, which is used as the content of <p> tag.
+
+To get rid of this, just put an empty string at the end so it returns empty string as the content instead of 0:
+
+   p { if ( 0 ) { } '' }
+
 =back
 
 =head1 BUGS
@@ -766,9 +786,11 @@
 
 Jesse Vincent <jesse at bestpractical.com>
 
-=head1 COPYRIGHT
-
-Copyright 2006-2007 Best Practical Solutions, LLC
+=head1 LICENSE
+
+Template::Declare is Copyright 2006-2008 Best Practical Solutions, LLC.
+
+Template::Declare is distributed under the same terms as Perl itself.
 
 =cut
 

Modified: trunk/libtemplate-declare-perl/lib/Template/Declare/TagSet/XUL.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/lib/Template/Declare/TagSet/XUL.pm?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/lib/Template/Declare/TagSet/XUL.pm (original)
+++ trunk/libtemplate-declare-perl/lib/Template/Declare/TagSet/XUL.pm Sun Nov 30 13:59:23 2008
@@ -33,7 +33,7 @@
   method  observes  overlay  page
   parameter  popup  popupset  progressmeter
   property  radio  radiogroup  rdf
-  resizer  resources  row  rows
+  resizer  resources  richlistbox row  rows
   rule  script  scrollbar  scrollbox
   separator  setter  spacer  splitter
   stack  statusbar  statusbarpanel  stringbundle

Modified: trunk/libtemplate-declare-perl/lib/Template/Declare/Tags.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/lib/Template/Declare/Tags.pm?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/lib/Template/Declare/Tags.pm (original)
+++ trunk/libtemplate-declare-perl/lib/Template/Declare/Tags.pm Sun Nov 30 13:59:23 2008
@@ -18,7 +18,7 @@
     = qw( with template private show show_page attr outs
           outs_raw in_isolation $self under
           get_current_attr xml_decl
-          smart_tag_wrapper current_template wrapper );
+          smart_tag_wrapper current_template create_wrapper );
 our @TAG_SUB_LIST;
 *TagSubs = \@TAG_SUB_LIST;  # For backward compatibility only
 
@@ -273,10 +273,10 @@
 
 }
 
-=head2 wrapper WRAPPERNAME => sub { 'Implementation' };
-
-C<wrapper> declares a wrapper subroutine that can be called like a tag sub,
-but can optionally take arguments to be passed to the wrapper sub. For
+=head2 create_wrapper WRAPPERNAME => sub { 'Implementation' };
+
+C<create_wrapper> declares a wrapper subroutine that can be called like a tag
+sub, but can optionally take arguments to be passed to the wrapper sub. For
 example, if you wanted to wrap all of the output of a template in the usual
 HTML headers and footers, you can do something like this:
 
@@ -285,7 +285,7 @@
   use base 'Template::Declare';
 
   BEGIN {
-      wrapper wrap => sub {
+      create_wrapper wrap => sub {
           my $code = shift;
           my %params = @_;
           html {
@@ -322,7 +322,7 @@
 
 =cut
 
-sub wrapper ($$) {
+sub create_wrapper ($$) {
     my $wrapper_name   = shift;
     my $coderef        = shift;
     my $template_class = caller;

Modified: trunk/libtemplate-declare-perl/t/wrappers.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-declare-perl/t/wrappers.t?rev=27477&op=diff
==============================================================================
--- trunk/libtemplate-declare-perl/t/wrappers.t (original)
+++ trunk/libtemplate-declare-perl/t/wrappers.t Sun Nov 30 13:59:23 2008
@@ -6,7 +6,7 @@
 use base 'Template::Declare';
 
 BEGIN {
-    wrapper wrap => sub {
+    create_wrapper wrap => sub {
         my $code = shift;
         my %params = @_;
         html {




More information about the Pkg-perl-cvs-commits mailing list