hakyll-shakespeare 0.1.0 → 0.1.0.0.1
raw patch · 2 files changed
+26/−15 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Hakyll.Web.Hamlet: renderHtml :: Html -> String
+ Hakyll.Web.Hamlet: renderHaml :: HamletSettings -> Map Text HamletData -> Item String -> Compiler (Item String)
Files
- hakyll-shakespeare.cabal +15/−14
- src/Hakyll/Web/Hamlet.hs +11/−1
hakyll-shakespeare.cabal view
@@ -1,18 +1,18 @@-name: hakyll-shakespeare-version: 0.1.0-synopsis: Hakyll Hamlet compiler-homepage: https://github.com/eliza0x/hakyll-hamlet#readme-license: MIT-license-file: LICENSE-author: Eliza-maintainer: me@eliza.link-copyright: 2016 Eliza Calls.-category: Web-build-type: Simple-cabal-version: >=1.10+name: hakyll-shakespeare+version: 0.1.0.0.1+synopsis: Hakyll Hamlet compiler+license: MIT+license-file: LICENSE+author: Eliza <me@eliza>+maintainer: Eliza <me@eliza.link>+copyright: 2016 Eliza Calls.+category: Web+stability: Stable+build-type: Simple+cabal-version: >=1.10 -description: hakyll-shakespeare is for using Hamlet with Hakyll.- This library used Text.Hamlet.Runtime.+description: hakyll-shakespeare is for using Hamlet with Hakyll.+ This library used Text.Hamlet.Runtime. library hs-source-dirs: src@@ -24,6 +24,7 @@ , shakespeare , text default-language: Haskell2010+ ghc-options: -Wall source-repository head type: git
src/Hakyll/Web/Hamlet.hs view
@@ -4,6 +4,15 @@ Copyright : (c) eliza, 2016 License : MIT Maintainer : me@eliza.link++If you using option except default, read "Text.Hamlet.Runtime".++> import Hakyll+> import Hakyll.Web.Hamlet+> +> main :: IO ()+> main = hakyll $ do+> match "templates/*.hamlet" $ compile hamlTemplateCompiler -} module Hakyll.Web.Hamlet (@@ -11,7 +20,7 @@ , hamlCompilerWith , hamlTemplateCompiler , hamlTemplateCompilerWith- , renderHtml+ , renderHaml ) where import Hakyll@@ -56,3 +65,4 @@ template <- parseHamletTemplate hamletSettings body html <- renderHamletTemplate template hamletVariables return $ renderHtml html+