Safe Haskell | None |
---|---|
Language | Haskell2010 |
Use Tailwind CSS with blaze-html? Try this module for rapid prototyping of websites in Ema.
Synopsis
- layout :: Action -> Html -> Html -> LByteString
- layoutWith :: AttributeValue -> AttributeValue -> Html -> Html -> Html -> LByteString
- twindShim :: Action -> Html
- twindShimCdn :: Html
- twindShimOfficial :: Html
- twindShimUnofficial :: Html
Main functions
layout :: Action -> Html -> Html -> LByteString Source #
A simple and off-the-shelf layout using Tailwind CSS
layoutWith :: AttributeValue -> AttributeValue -> Html -> Html -> Html -> LByteString Source #
Like layout
, but pick your own language, encoding and tailwind shim.
Tailwind shims
twindShimCdn :: Html Source #
Loads full tailwind CSS from CDN (not good for production)
twindShimOfficial :: Html Source #
This shim may not work with hot reload.
twindShimUnofficial :: Html Source #
This shim does work with hot reload, but it spams console with warnings.