packages feed

ginger 0.5.1.2 → 0.5.1.3

raw patch · 2 files changed

+5/−3 lines, 2 filesdep +wrytePVP ok

version bump matches the API change (PVP)

Dependencies added: wryte

API changes (from Hackage documentation)

Files

ginger.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                ginger-version:             0.5.1.2+version:             0.5.1.3 synopsis:            An implementation of the Jinja2 template language in Haskell description:         Ginger is Jinja, minus the most blatant pythonisms. Wants                      to be feature complete, but isn't quite there yet.@@ -50,6 +50,7 @@                , unordered-containers >= 0.2.5                , utf8-string                , vector+               , wryte   hs-source-dirs:      src   default-language:    Haskell2010 @@ -65,6 +66,7 @@                  , text                  , transformers                  , unordered-containers >= 0.2.5+                 , wryte  test-suite tests     type: exitcode-stdio-1.0
src/Text/Ginger/Run.hs view
@@ -11,13 +11,13 @@ -- Usage example: -- -- > render :: Template -> Text -> Text -> Text--- > render template -> username imageURL = do+-- > render template username imageURL = do -- >    let contextLookup varName = -- >            case varName of -- >                "username" -> toGVal username -- >                "imageURL" -> toGVal imageURL -- >                _ -> def -- def for GVal is equivalent to a NULL value--- >        context = makeContext contextLookup+-- >        context = makeContextHtml contextLookup -- >    in htmlSource $ runGinger context template module Text.Ginger.Run (