petterw / uritemplate

Implementation of simple expansion of URI-templates, targeting the uri-template RFC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URI Templates

This library provides easy expansion of URI templates.

It is an implementation of a soon-to-be RFC, found at http://code.google.com/p/uri-templates/

So far, the library only supports simple String values, and no modifiers on the variable specs.

Examples

Given the template:

http://www.google.com/{?q}

and the context q=nalle, the result will be

http://www.google.com/?q=nalle

Credits

This library is a product of the Cloudname Open Source factory.

The algorithm used is based on appendix A of the RFC.

About

Implementation of simple expansion of URI-templates, targeting the uri-template RFC