File tree Expand file tree Collapse file tree 2 files changed +1031
-958
lines changed Expand file tree Collapse file tree 2 files changed +1031
-958
lines changed Original file line number Diff line number Diff line change @@ -3296,6 +3296,7 @@ One of the "killer apps" for Emacs--and for git!
32963296- [[#elfeedxml-queryel][elfeed/xml-query.el]]
32973297- [[#enlive][enlive]]
32983298- [[#xml-plus][xml-plus]]
3299+ - [[#xmlgen-an-s-expression-to-xml-dsl][xmlgen: An s-expression to XML DSL]]
32993300:END:
33003301
33013302These libraries can all be used for HTML.
@@ -3465,6 +3466,37 @@ Mostly undocumented, providing three main functions:
34653466 ;;; epdh.el ends here
34663467#+END_SRC
34673468
3469+ **** [[https://github.com/philjackson/xmlgen][xmlgen: An s-expression to XML DSL]]
3470+
3471+ Generate XML using sexps with the function ~xmlgen~:
3472+
3473+ #+BEGIN_SRC elisp
3474+ (xmlgen '(html
3475+ (head
3476+ (title "hello")
3477+ (meta :something "hi"))
3478+ (body
3479+ (h1 "woohhooo")
3480+ (p "text")
3481+ (p "more text"))))
3482+ #+END_SRC
3483+
3484+ produces this:
3485+
3486+ #+BEGIN_SRC html
3487+ <html>
3488+ <head>
3489+ <title>hello</title>
3490+ <meta something="hi" />
3491+ </head>
3492+ <body>
3493+ <h1>woohhooo</h1>
3494+ <p>text</p>
3495+ <p>more text</p>
3496+ </body>
3497+ </html>
3498+ #+END_SRC
3499+
34683500* Blogs :blogs:
34693501:PROPERTIES:
34703502:TOC: :depth 0
You can’t perform that action at this time.
0 commit comments