2 URI::Template - Object for handling URI templates
6 my $template = URI::Template->new( 'http://example.com/{x}' );
7 my $uri = $template->process( x => 'y' );
8 # uri is a URI object with value 'http://example.com/y'
11 This is an initial attempt to provide a wrapper around URI templates as
13 http://www.ietf.org/internet-drafts/draft-gregorio-uritemplate-03.txt
23 Creates a new URI::Template instance with the template passed in as the
27 This method returns the original template string.
30 Returns an array of unique variable names found in the template. NB:
31 they are returned in random order.
34 This method returns an list of expansions found in the template.
35 Currently, these are just coderefs. In the future, they will be more
39 Given a list of key-value pairs or an array ref of values (for
40 positional substitution), it will URI escape the values and substitute
41 them in to the template. Returns a URI object.
43 process_to_string( \%vars )
44 Processes input like the "process" method, but doesn't inflate the
45 result to a URI object.
48 Brian Cassidy <bricas@cpan.org>
50 Ricardo SIGNES <rjbs@cpan.org>
53 Copyright 2008 by Brian Cassidy
55 This library is free software; you can redistribute it and/or modify it
56 under the same terms as Perl itself.