heist 0.7.0 → 0.7.0.1
raw patch · 3 files changed
+11/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- heist.cabal +1/−1
- src/Text/Templating/Heist/Internal.hs +2/−1
- test/suite/Text/Templating/Heist/Tests.hs +8/−1
heist.cabal view
@@ -1,5 +1,5 @@ name: heist-version: 0.7.0+version: 0.7.0.1 synopsis: An (x)html templating system description: An (x)html templating system license: BSD3
src/Text/Templating/Heist/Internal.hs view
@@ -375,7 +375,8 @@ return $ T.concat chunks where cvt (Literal x) = return x- cvt (Ident x) = getAttributeSplice x+ cvt (Ident x) =+ localParamNode (const $ X.Element x [] []) $ getAttributeSplice x ------------------------------------------------------------------------------
test/suite/Text/Templating/Heist/Tests.hs view
@@ -64,6 +64,7 @@ , testCase "heist/apply" applyTest , testCase "heist/ignore" ignoreTest , testCase "heist/lookupTemplateContext" lookupTemplateTest+ , testCase "heist/attrSpliceContext" attrSpliceContext ] @@ -137,7 +138,7 @@ ets <- loadT "templates" either (error "Error loading templates") (\ts -> do let tm = _templateMap ts- H.assertBool "loadTest size" $ Map.size tm == 21+ H.assertBool "loadTest size" $ Map.size tm == 23 ) ets @@ -266,6 +267,12 @@ -- | Handling of <content> and bound parameters in a bonud tag. bindParam :: H.Assertion bindParam = renderTest "bind_param" "<li>Hi there world</li>"+++------------------------------------------------------------------------------+-- | Handling of <content> and bound parameters in a bonud tag.+attrSpliceContext :: H.Assertion+attrSpliceContext = renderTest "attrsubtest2" "<a href='asdf'>link</a>" ------------------------------------------------------------------------------