Skip to content

JuliaWeb/URITemplate.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.