Commit 83948c3d authored by Vladimir Sedach's avatar Vladimir Sedach

Removed enable-uri-template-syntax function

parent e594be8d
2019-08-16 Vladimir Sedach <vas@oneofus.la>
* Removed enable-uri-template-syntax function.
There was no correspond "disable" function, and using
named-readtables is safer.
2019-08-15 Vladimir Sedach <vas@oneofus.la>
* Removed uri-encode, uri-decode functions.
......
......@@ -47,16 +47,12 @@ to anaphoric variables:
More examples can be found in the uri-template-test.lisp file.
uri-templates can be enabled by calling enable-uri-template-syntax, or
by merging or using the uri-template:uri-template readtable via the
named-readtables library:
uri-templates can be enabled by merging or using the
uri-template:uri-template readtable via the named-readtables library:
https://common-lisp.net/project/named-readtables/
Function reference:
enable-uri-template-syntax (function)
Binds the #U dispatch character to read a URI template.
read-uri-template (function)
A function suitable for inserting into the readtable so you can
read URI templates from your own dispatch character.
......
......@@ -27,7 +27,6 @@
#:uri-template
;; interpolation
#:enable-uri-template-syntax
#:read-uri-template
#:uri-encode?
......
......@@ -66,8 +66,3 @@ the #U dispatch macro."
(defun uri-template-reader (stream subchar arg)
(declare (ignore subchar arg))
`(uri-template ,@(read-uri-template stream t)))
(defun enable-uri-template-syntax ()
"Binds the #U dispatch character to read a URI template."
(set-dispatch-macro-character #\# #\U 'uri-template-reader)
(values))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment