Skip to content
This repository was archived by the owner on Nov 2, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 753 Bytes

File metadata and controls

25 lines (16 loc) · 753 Bytes

uri-template Build Status

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"

Dependencies

SBT:

libraryDependencies += "com.newmotion" %% "uri-template" % "1.0.3-SNAPSHOT"