uri-template

uri-template is a Common Lisp implementation of URI templates as a reader macro, used for both template interpolation and destructuring.

Example use explains the concept best:


(let ((foo 1))
  #Uhttp://www.example.com/widget/{foo}/parts)

=> "http://www.example.com/widget/1/parts"

(uri-template-bind (#Uhttp://www.example.com/{part}/{(#'parse-integer number)}) "http://www.example.com/widget/1" (list part number %uri-host))

=> ("widget" 1 "www.example.com")

Project homepage: http://common-lisp.net/project/uri-template/

Download ASDF package from http://common-lisp.net/project/uri-template/release/uri-template-latest.tgz

Related projects: puri

uri-template is a web library.

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively