Is there an Emacs Lisp library for generating HTML?

前端 未结 5 1257
情深已故
情深已故 2020-12-24 16:00

I\'m looking for a solution that allows me to write native Emacs Lisp code and at compile time turns it into HTML, like Franz\'s htmlgen:

(html
 ((:div class         


        
5条回答
  •  梦毁少年i
    2020-12-24 16:05

    I had a similar requirement to be able to parse xml using xml-parse functions, transform it, and then output it back as a xml string.

    Trey's solution almost worked except I needed to retain the whitespace xml elements. So I wrote my own implementation here:

    https://github.com/upgradingdave/xml-to-string

提交回复
热议问题