Quick scaffolding for Halogen's HTML DSL
PureScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
kRITZCREEK Merge pull request #2 from jimmyhuco/master
add support implicit tag
Latest commit cd540a0 Nov 2, 2017
Failed to load latest commit information.
bin set up executable Jun 3, 2017
src add support implicit tag Nov 2, 2017
.gitignore Thou shalt not doubt Jun 2, 2017
.npmignore set up executable Jun 3, 2017
LICENSE adds license Jun 4, 2017
README.md Create README.md Jun 9, 2017
bower.json v1.0.0 Jun 5, 2017
index.js set up executable Jun 3, 2017
package.json 1.0.1 Jun 5, 2017



A tool for emmet-like html abbreviations and generators in PureScript (Right now it only does Halogen, but it's easy to write a renderer for all kinds of HTML DSLs).


npm i -g purescript-emmet


purescript-emmet expects an abbreviation on stdin and outputs generated halogen markup on stdout. As an example of how to use this in Emacs, add this to your init.el:

(defun purescript-emmet ()
  (let ((start (point))
        (end (save-excursion (beginning-of-line-text) (point))))
    (call-process-region start end "purescript-emmet" t t)))
(global-set-key (kbd "C-c C-e") 'purescript-emmet)

(Choose whatever keybinding you prefer)

Usage as a Library

Check Emmet.Halogen.emmetHalogen to see an example usage of the library and how you'd go about writing your own renderer.


Copyright 2017 Christoph Hegemann

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

See the LICENSE file for further details.