Popularity
7.2
Growing
Activity
0.0
Stable
17
6
4
Monthly Downloads: 10
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
scotty-hastache alternatives and similar packages
Based on the "scotty" category.
Alternatively, view scotty-hastache alternatives based on common mentions on social networks and blogs.
-
scotty
Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository) -
scotty-cookie
Cookie management helper functions for Scotty framework -
scotty-path-normalizer
Scotty action to redirect to a normalized path (remove trailing slash, "..", etc.) -
scotty-format
Response format helper for the Scotty web framework -
scotty-binding-play
The Play Framework style data binding in Scotty.
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
Do you think we are missing an alternative of scotty-hastache or a related project?
README
scotty-hastache
Integrating Hastache into Scotty
- Scotty - a light-weighted Web framework/router
- Hastache - Haskell implementation of Mustache templates
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Text.Hastache
import Web.Scotty.Trans as S
import Web.Scotty.Hastache
main :: IO ()
main = scottyH' 3000 $ do
setTemplatesDir "templates"
-- ^ Setting up the director with templates
get "/:word" $ do
beam <- param "word"
setH "action" $ MuVariable (beam :: String)
-- ^ "action" will be binded to the contents of 'beam'
hastache "greet.html"
templates/greet.html:
<h1>Scotty, {{action}} me up!</h1>
Installation
- Install GHC, Haskell platform, etc.
- Use cabal-install to automatically pull all the dependencies and install the library:
cabal update
cabal install scotty-hastache
Examples
examples
folder- https://gist.github.com/co-dan/6015894