URITemplate.jl
September 4, 2015 ยท View on GitHub
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.