1
1
mirror of https://github.com/srid/ema.git synced 2024-12-02 09:15:10 +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) -- | Loads full tailwind CSS from CDN (not good for production)
twindShimCdn :: H.Html twindShimCdn :: H.Html
twindShimCdn = twindShimCdn =
H.unsafeByteString . encodeUtf8 $ H.link
[text| ! A.href "https://unpkg.com/tailwindcss@2.1.2/dist/tailwind.min.css"
<link href="https://unpkg.com/tailwindcss@2.1.2/dist/tailwind.min.css" rel="stylesheet" type="text/css"> ! A.rel "stylesheet"
|] ! A.type_ "text/css"
-- | This shim may not work with hot reload. -- | This shim may not work with hot reload.
twindShimOfficial :: H.Html twindShimOfficial :: H.Html