@hackage reflex-jsx0.1.0.0
Use jsx-like syntax in Reflex
Categories
License
BSD-3-Clause
Maintainer
david.w.ackerman@gmail.com
Links
Versions
- 0.1.0.0 Tue, 24 May 2016
Installation
Dependencies (8)
- base >=4.8 && <5
- containers
- haskell-src-meta
- parsec >=3.1 && <3.2
- reflex
- reflex-dom Show all…
Dependents (1)
@hackage/acme-everything
`reflex-jsx` is a library for writing jsx-like syntax in
reflex code. This can be useful for situations where you
have a large block of HTML with some styles, and it would
be easier to read as actual HTML than various reflex
functions.
It's implemented as a QuasiQuoter, so you just import the
jsx function from ReflexJsx and generate the equivalent
functions that would run inside of a "MonadWidget t m".
Not only can you generate a block of static HTML/CSS, but you
can also splice in your own nodes that implement
"MonadWidget t m", string attribute values, or even entire
dynamic attribute maps.