Ema.Helper.Tailwind module provides a
layout function that uses twind shim that is used in the statically generated site, and otherwise uses Tailwind CSS from CDN in the dev server mode. This helper is for those that use Tailwind CSS in conjunction with blaze-html DSL.
To use the layout helper in your render function:
render :: Ema.CLI.Action -> MyModel -> MyRoute -> Asset LByteString render emaAction model route = do AssetGenerated Html $ Tailwind.layout emaAction (H.title "My site" >> H.base ! A.href "/") $ do H.p "Hello world"
The very site you are viewing (ema.srid.ca) is a live demonstration of this helper.