Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.02 KB

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.