kwrooijen / hiccup-cli

Command line tool / Emacs plugin to convert HTML to Hiccup syntax.
MIT License
44 stars 5 forks source link

Add keyword style flag #3

Open kwrooijen opened 3 years ago

kwrooijen commented 3 years ago

Add a --keyword-styles flag to output styles as keywords. This should also be configurable in Emacs.

default

[:div {:style "display: block;"}]

--keyword-style / (setq hiccup-cli-keyword-style t)

[:div {:style {:display :block}}]