hamlet 1.0.1.3 → 1.0.1.4
raw patch · 3 files changed
+5/−2 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Text.Hamlet: type Html = HtmlM ()
+ Text.Hamlet: type Html = Markup
Files
- Text/Hamlet/Parse.hs +1/−1
- hamlet.cabal +1/−1
- test/HamletTest.hs +3/−0
Text/Hamlet/Parse.hs view
@@ -228,7 +228,7 @@ contentReg InContent = (ContentRaw . return) <$> noneOf "#@^\r\n" contentReg NotInQuotes = (ContentRaw . return) <$> noneOf "@^#. \t\n\r>" contentReg NotInQuotesAttr = (ContentRaw . return) <$> noneOf "@^ \t\n\r>"- contentReg InQuotes = (ContentRaw . return) <$> noneOf "#@^\\\"\n\r>"+ contentReg InQuotes = (ContentRaw . return) <$> noneOf "#@^\\\"\n\r" tagAttribValue notInQuotes = do cr <- (char '"' >> return InQuotes) <|> return notInQuotes content cr
hamlet.cabal view
@@ -1,5 +1,5 @@ name: hamlet-version: 1.0.1.3+version: 1.0.1.4 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>
test/HamletTest.hs view
@@ -355,6 +355,9 @@ , it "blank attr values" $ helper "<foo bar=\"\" baz bin=\"\"></foo>" [hamlet|<foo bar="" baz bin=>|] + , it "greater than in attr" $ helper + "<button data-bind=\"enable: someFunction() > 5\">hello</button>" + [hamlet|<button data-bind="enable: someFunction() > 5">hello|] ] data Pair = Pair String Int