Is there an Emacs Lisp library for generating HTML?

前端 未结 5 1272
情深已故
情深已故 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-24 16:19

    Meanwhile, I found some code that contains something similar I want. Now I can write:

    (views-with-html
     ((body)
      (h1 "Title")
      ((p (class . "entry")) "Hello, World!")))
    

    The implementation has a few limitations (e.g. hard-coded element list), but it seems to be a good starting point.

提交回复
热议问题