minibuffer

Do you know how to generate html strings with Emacs Lisp?

August 24, 2023
(require 'jack) ;; https://jack.tonyaldon.com

(with-temp-file "index.html"
  (insert
   (jack-html
    '(:ul
      (:li "foo-0")
      (:li "foo-1")
      (:li "foo-2")))))

;; need `prettier' utility installed - https://prettier.io
(call-process-shell-command "prettier --write index.html" nil 0)