Skip to content
Very basic parser/renderer to convert raw HTML into valid PureScript Halogen syntax
PureScript HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
purescript-html-parser
src
.gitignore
.travis.yml
LICENSE
README.md
entry.js
index.html
package-lock.json
package.json
psc-package.json
yarn.lock

README.md

html2purescript

Live at http://michaeldougherty.info/html2purescript/

Very basic parser/renderer to convert between raw HTML and (something close to) valid, readable PureScript syntax. Right now only outputs to Halogen.

For HTML parsing, the app uses https://github.com/carymrobbins/purescript-html-parser, which is itself incomplete and not published to Pursuit, so it is included in my project as a submodule for now.

For Halogen output, it is assumed the following are imported:

import Halogen as H
import Halogen.HTML as HH
import Halogen.HTML.Events as HE
import Halogen.HTML.Properties as HP

The project itself is written in Halogen and is based off https://github.com/qwaneu/purescript-halogen-template

You can’t perform that action at this time.