How to add html attributes with the Emacs package Jack?
August 25, 2023
(require 'jack) ;; https://jack.tonyaldon.com
(jack-html '(:div "foo")) ;; "<div>foo</div>"
(jack-html '(:div (@ :id "myid" :class "myclass") "foo"))
;; "<div id=\"myid\" class=\"myclass\">foo</div>"
(jack-html '(:div/id.myclass1.myclass2 "foo"))
;; "<div id=\"id\" class=\"myclass1 myclass2\">foo</div>"