packages feed

hamlet 1.1.2 → 1.1.3

raw patch · 3 files changed

+10/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Text/Hamlet/Parse.hs view
@@ -100,6 +100,7 @@     x <- doctype <|>          doctypeDollar <|>          comment <|>+         ssiInclude <|>          htmlComment <|>          doctypeRaw <|>          backslash <|>@@ -150,6 +151,11 @@         _ <- many $ noneOf "\r\n"         eol         return $ LineContent [] True+    ssiInclude = do+        x <- try $ string "<!--#"+        y <- many $ noneOf "\r\n"+        eol+        return $ LineContent [ContentRaw $ x ++ y] False     htmlComment = do         _ <- try $ string "<!--"         _ <- manyTill anyChar $ try $ string "-->"
hamlet.cabal view
@@ -1,5 +1,5 @@ name:            hamlet-version:         1.1.2+version:         1.1.3 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>
test/HamletTest.hs view
@@ -170,6 +170,9 @@     <!-- ignored --> not ignored<!-- ignored -->
 |]
 
+    it "Keeps SSI includes" $
+      helper "<!--# SSI -->" [hamlet|<!--# SSI -->|]
+
 
 
     it "nested maybes" $ do