Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of LTjake (4001)

Tuesday January 16, 2007
08:19 AM

URI::Template 0.01 now on CPAN

[ #32159 ]

URI::Template 0.01 has made it's way to CPAN.

What's a URI template you ask? It's a spec extracted from the OpenSearch standard to facilitate the programmatic creation of URIs. The first draft of the spec is now online. It's a slightly more simplified version than what you get with OpenSearch. For instance, the OpenSearch spec has a provision for namespaced template variables.

Here's what a simple template might look like when used with URI::Template

use URI::Template;

my $template = URI::Template->new( '{query}' );
my $uri = $template->process( query => 'foo' );

# $uri is now a URI object with value:

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.