Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 497 Bytes

File metadata and controls

16 lines (11 loc) · 497 Bytes

URI Template

Complete implementation of RFC-6570 (uri-templates) in Scala

Apache 2 Licenced

Example of usage (see the tests for more)

import uritemplate._
import Syntax._

val template = URITemplate("http://example.com/hello/{variable}")
val expanded = template expand ("variable" := "world")

expanded == "http://example.com/hello/world"