cl-json-template

API Reference

json-template

An implementation of a subset of the JSON Template language.

JSON-TEMPLATE

  • Function PARSE-TEMPLATE-STRING (string)
  • Function EXPAND-TEMPLATE (template context)
  • Variable *TEMPLATE-FORMATTERS*
    `(("html"
       . ,(json-template::make-escaper
           '((#\< . "&#60;") (#\> . "&#62;") (#\& . "&#38;"))))
      ("html-attr-value"
       . ,(json-template::make-escaper
           '((#\< . "&#60;") (#\> . "&#62;") (#\& . "&#38;") (#\' . "&#39;")
             (#\" . "&#34;"))))
      ("url-param-value" . json-template::escape-for-uri) ("raw" . identity))