URITemplate.jl

RFC6570 URI templates for Julia
Popularity
4 Stars
Updated Last
3 Years Ago
Started In
July 2013

URITemplate.jl

Build Status

URITemplate URITemplate

This package provides URI Template interpolation by implementing RFC 6570. The only interface to this function is the expand method which may be invoked as

URITemplate.expand(template,variables)

e.g:

vars = {"var" => "value", "hello" => "Hello World!","list"=>["red", "green", "blue"]}
URITemplate.expand("{var}",vars) # "value"
URITemplate.expand("{hello}",vars) # "Hello%20World%21"
URITemplate.expand("{?list*}",vars) == "?list=red&list=green&list=blue"

This package is supposed to conform to the above mentioned RFC. If you find a case in which is does not, please open an Issue.