Revision history for Perl extension URI::Template
+0.09 Tue Aug 28 2007
+ - minor doc update
+
0.08_02 Tue Jul 31 2007
- switch to Module::Install
- extract part of the test suite into a generic json-formatted structure
http://www.ietf.org/internet-drafts/draft-gregorio-uritemplate-01.txt
INSTALLATION
- To install this module via Module::Build:
-
- perl Build.PL
- ./Build # or `perl Build`
- ./Build test # or `perl Build test`
- ./Build install # or `perl Build install`
-
- To install this module via ExtUtils::MakeMaker:
-
- perl Makefile.PL
- make
- make test
- make install
+ perl Makefile.PL
+ make
+ make test
+ make install
METHODS
new( $template )
stringified.
variables( )
- Returns an array of variable names found in the template. NB: they are
- returned in random order.
+ Returns an array of unique variable names found in the template. NB:
+ they are returned in random order.
all_variables( )
Returns an array of variable names found as they appear in template --
Returns a hash with the extracted values.
AUTHOR
- * Brian Cassidy <bricas@cpan.org>
+ Brian Cassidy <bricas@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2007 by Brian Cassidy
use strict;
use warnings;
-our $VERSION = '0.08_02';
+our $VERSION = '0.09';
use URI;
use URI::Escape ();
=head1 INSTALLATION
-To install this module via Module::Build:
-
- perl Build.PL
- ./Build # or `perl Build`
- ./Build test # or `perl Build test`
- ./Build install # or `perl Build install`
-
-To install this module via ExtUtils::MakeMaker:
-
- perl Makefile.PL
- make
- make test
- make install
+ perl Makefile.PL
+ make
+ make test
+ make install
=head1 METHODS
=head2 variables( )
-Returns an array of variable names found in the template. NB: they
-are returned in random order.
+Returns an array of unique variable names found in the template.
+NB: they are returned in random order.
=cut
use Test::More;
BEGIN {
- eval "use JSON ();";
- plan skip_all => "JSON required" if $@;
+ eval "use JSON ();";
+ plan skip_all => "JSON required" if $@;
plan( 'no_plan' );
use_ok( 'URI::Template' );
}