fn-extra 0.1.0.0 → 0.1.1.0
raw patch · 3 files changed
+17/−1 lines, 3 files
Files
- CHANGELOG.md +6/−0
- fn-extra.cabal +1/−1
- src/Web/Fn/Extra/Heist.hs +10/−0
CHANGELOG.md view
@@ -1,1 +1,7 @@+* 0.1.1.0 Daniel Patterson <dbp@dbpmail.net> 2015-10-30++ Add `tag'`, which builds splices without atttributes.+ * 0.1.0.0 Daniel Patterson <dbp@dbpmail.net> 2015-10-26++ Initial release.
fn-extra.cabal view
@@ -1,5 +1,5 @@ name: fn-extra-version: 0.1.0.0+version: 0.1.1.0 synopsis: Extras for Fn, a functional web framework. description: Please see README. homepage: http://github.com/dbp/fn#readme
src/Web/Fn/Extra/Heist.hs view
@@ -27,6 +27,7 @@ , renderWithSplices -- * Building splices , tag+ , tag' , FromAttribute(..) , attr , attrOpt@@ -160,6 +161,15 @@ name <> "'" return [] Just (_, a) -> a++-- | A tag with no attributes.+tag' :: Text ->+ (ctxt -> X.Node -> FnSplice ctxt) ->+ Splices (FnSplice ctxt)+tag' name handle =+ name ## do ctxt <- lift ask+ node <- getParamNode+ handle ctxt node -- | This combines two matchers together.