plump-sexp

2024-10-12

Turning SEXPs into a Plump DOM and back.

Upstream URL

github.com/Shinmera/plump-sexp

Author

Yukari Hafner <shinmera@tymoon.eu>

Maintainer

Yukari Hafner <shinmera@tymoon.eu>

License

zlib
README

plump-sexp

Yet another SEXP to HTML thing. This time with Plump back-end.

(plump:serialize (plump-sexp:parse '((div :id "foo") (p "bar") "baz")))
=> <div id="foo"><p>bar</p>baz</div>

Of course, you can now also transform any kind of Plump document into such an SEXP tree:

(plump-sexp:serialize (plump:parse "<div id="bar"><p>foo</p>baz</div>"))
=> (:!ROOT ((:DIV :ID "bar") (:P "foo") "baz"))

If you have tags with case differences, you can also use strings for the tag and attribute names.

Dependencies (1)

  • plump

Dependents (1)

  • GitHub
  • Quicklisp