https://github.com/xorgy/lbx
XML that might just work.
https://github.com/xorgy/lbx
emitter text xml xml-emitter
Last synced: 2 months ago
JSON representation
XML that might just work.
- Host: GitHub
- URL: https://github.com/xorgy/lbx
- Owner: xorgy
- License: isc
- Created: 2022-08-25T19:03:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T16:19:58.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T17:28:31.297Z (over 1 year ago)
- Topics: emitter, text, xml, xml-emitter
- Language: Clojure
- Homepage: https://lbx.suis.je/
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LBX — Langage de Balisage eXtensible
XML that might just work.
Emit clean XML with hiccup-style keyword s-expressions.
## Usage
```clojure
je.suis/lbx {:mvn/version "0.3.0-SNAPSHOT"}
```
```clojure
(require [je.suis.lbx :refer [emit CDATA]])
(emit
[:rss {:version "2.0" :xmlns:atom "http://www.w3.org/2005/Atom"}
[:channel
[:title "My totally sick RSS feed"]
[:description [CDATA "Only the illest from this feed, yo. & also no mess regarding this "]]]])
;
;
;
; My totally sick RSS feed
; from this feed, yo. & alse no mess regarding this ]]>
;
;
```
## License
Copyright © 2022 Aaron Muir Hamilton
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.