1
1
mirror of https://github.com/srid/ema.git synced 2024-12-01 23:23:42 +03:00

twind: render without using raw

Because it breaks heist
This commit is contained in:
Sridhar Ratnakumar 2021-05-19 18:57:04 -04:00
parent e85a461f77
commit d04ca0c82b

View File

@ -57,10 +57,10 @@ layoutWith lang encoding tshim appHead appBody = RU.renderHtml $ do
-- | Loads full tailwind CSS from CDN (not good for production)
twindShimCdn :: H.Html
twindShimCdn =
H.unsafeByteString . encodeUtf8 $
[text|
<link href="https://unpkg.com/tailwindcss@2.1.2/dist/tailwind.min.css" rel="stylesheet" type="text/css">
|]
H.link
! A.href "https://unpkg.com/tailwindcss@2.1.2/dist/tailwind.min.css"
! A.rel "stylesheet"
! A.type_ "text/css"
-- | This shim may not work with hot reload.
twindShimOfficial :: H.Html