html2purescript
html2purescript copied to clipboard
Very basic parser/renderer to convert raw HTML into valid PureScript Halogen syntax
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...
Bumps [acorn](https://github.com/acornjs/acorn) from 5.5.3 to 5.7.4. Commits 6370e90 Mark version 5.7.4 fbc15b1 More rigorously check surrogate pairs in regexp validator 910e62b Mark version 5.7.3 3442a80 Make generate-identifier-regex capable of rewriting...
For example https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input ```html ``` Result ``` Expected EOF ``` But with closing slash (not required in html, but optional) ```html ``` Result ``` [ HH.input [ HP.type "text", HP.id_...
It would be nice to detect (or with checkbox) enable support for bootstrap and replace `ClassName "navbar-nav"` by `navbarNav` See https://github.com/mschristiansen/purescript-halogen-bootstrap4/blob/master/src/Halogen/Themes/Bootstrap4.purs
When i try to run the example on halogen 5 it does not seem to accept `HP.type`
At the moment an attribute in html `data-toggle` is translated as `HP.data-toggle`. I think instead this function https://pursuit.purescript.org/packages/purescript-halogen/4.0.0/docs/Halogen.HTML.Properties#v:attr should be used `HP.attr (AttrName "data-toggle") "value"`
I'm sure that you have considered this but I think it would be nice to allow for a syntax that allows for variables. ```hamlet #{anotherPurscriptVariable} ``` ```purescript [ HH.div [...