All Projects → maackle → html2purescript

maackle / html2purescript

Licence: Apache-2.0 license
Very basic parser/renderer to convert raw HTML into valid PureScript Halogen syntax

Programming Languages

purescript
368 projects
Dhall
116 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

html2purescript

THIS REPO IS NOT MAINTAINED. It's designed to quickly bootstrap from HTML into Halogen markup, but it is not robust or complete. Feel free to fork!

Latest version live at https://srghma.github.io/html2purescript/

Previous version (see branch) 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

Alternatives

https://github.com/flip111/purescript-html2halogen

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].