Lemongrass is a pure Janet library for converting between markup languages like HTML and XML and Janet data structures.
Add the dependency to your project.janet
file:
(declare-project
:dependencies ["https://github.com/pyrmont/lemongrass"])
Lemongrass can be used like this:
(import lemongrass)
(lemongrass/markup->janet `<h1 class="foo">Hello world!</h1>`)
# => @[:h1 @{:class "foo"} "Hello world!"]
(lemongrass/janet->markup [:h1 {:class "foo"} "Hello world!"])
# => "<h1 class="foo">Hello world!</h1>"
Found a bug? I'd love to know about it. The best way is to report your bug in the Issues section on GitHub.
Lemongrass is licensed under the MIT Licence. See LICENSE for more details.