scotty-hastache

Easy Mustache templating support for Scotty https://github.com/scotty-web/scotty-hastache

Latest on Hackage:0.2.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Dan Frumin
Maintained by difrumin@gmail.com

This library provides a small templating DSL extension for Scotty via the hastache library.

Scotty
is a light-weighted Web framework/router http://hackage.haskell.org/package/scotty
Hashache
is a Haskell implementation of the Mustache templates: http://mustache.github.io/, http://hackage.haskell.org/package/hastache

Changes

0.2
---

Keeping up with the Scotty 0.6 updating. The introduction of the
custom exception types is reflected in the `scotty-hastache` package
as well. The main types are now polymorphic over an exception type

type ScottyH e = ScottyT e HState
type ActionH e = ActionT e HState

In addition, the specialized (to `Text`) types and runners are
introduced

type ScottyH' = ScottyH Text
type ActionH' = ActionH Text
scottyH' :: Port -> ScottyH' () -> IO ()
scottyHOpts' :: Options -> ScottyH' () -> IO ()


Thanks to Kirill Zaborsky for pointing out the incompatibility with 0.6.
comments powered byDisqus