hastache 0.1.2 → 0.1.3
raw patch · 3 files changed
+6/−6 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Text/Hastache.hs +1/−1
- hastache.cabal +1/−1
- tests/test.hs +4/−4
Text/Hastache.hs view
@@ -149,7 +149,7 @@ proc :: [Word8] -> [Word8] proc (h:t) | h == ord8 '&' = stp "&" t- | h == ord8 '\\'= stp "\\\\" t+ | h == ord8 '\\'= stp "\" t | h == ord8 '"' = stp """ t | h == ord8 '\''= stp "'" t | h == ord8 '<' = stp "<" t
hastache.cabal view
@@ -1,5 +1,5 @@ name: hastache-version: 0.1.2+version: 0.1.3 license: BSD3 license-file: LICENSE category: Text
tests/test.hs view
@@ -51,7 +51,7 @@ context "ByteString" = MuVariable (encodeStr "hello - привет") context "Text" = MuVariable (T.pack "hello - привет") context "String" = MuVariable "hello - привет"- context "HtmlString" = MuVariable "<p>text</p>"+ context "HtmlString" = MuVariable "<p>text (\\)</p>" testRes = "\ \ Char: [ Й ] \n\@@ -60,9 +60,9 @@ \ ByteString: [ hello - привет ] \n\ \ Text: [ hello - привет ] \n\ \ String: [ hello - привет ] \n\- \ HtmlString: [ <p>text</p> ] \n\- \ HtmlStringUnEsc: [ <p>text</p> ] \n\- \ HtmlStringUnEsc2: [ <p>text</p> ] \n\+ \ HtmlString: [ <p>text (\)</p> ] \n\+ \ HtmlStringUnEsc: [ <p>text (\\)</p> ] \n\+ \ HtmlStringUnEsc2: [ <p>text (\\)</p> ] \n\ \" -- Show/hide block according to list state