hamlet 0.2.1 → 0.2.2
raw patch · 2 files changed
+7/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.Hamlet.Monad: htmlContentToText :: HtmlContent -> Text
Files
- Text/Hamlet/Monad.hs +6/−0
- hamlet.cabal +1/−1
Text/Hamlet/Monad.hs view
@@ -15,6 +15,7 @@ , outputUrlParams , outputEmbed -- * Utility functions+ , htmlContentToText , showUrl , liftHamlet , mapH@@ -236,3 +237,8 @@ return $ L.fromChunks $ front [] where iter front text = return $ Right $ front . (:) text++-- | Returns HTML-ready text (ie, all entities are escaped properly).+htmlContentToText :: HtmlContent -> Text+htmlContentToText (Encoded t) = t+htmlContentToText (Unencoded t) = encodeHtml t
hamlet.cabal view
@@ -1,5 +1,5 @@ name: hamlet-version: 0.2.1+version: 0.2.2 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>