Popularity
3.7
Declining
Activity
0.0
Stable
3
2
2
Monthly Downloads: 6
Programming language: Haskell
License: MIT License
scotty-blaze alternatives and similar packages
Based on the "scotty" category.
Alternatively, view scotty-blaze 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.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of scotty-blaze or a related project?
Popular Comparisons
README
Web.Scotty.Blaze
blaze-html integration for scotty
Exports
blaze :: Html -> ActionM ()
builder :: Builder -> ActionM ()
Example
{-# LANGUAGE OverloadedStrings #-}
import Web.Scotty
import Web.Scotty.Blaze
import Network.Wai.Middleware.RequestLogger
import Text.Blaze.Html (Html)
import qualified Text.Blaze.Html5 as H
import qualified Data.Text as T
import Data.Monoid ((<>))
helloHtml :: T.Text -> Html
helloHtml n =
H.html $ do
H.head $ do
H.title greet
H.body $ do
H.p greet
where
greet = H.toHtml $ "Hello, " <> n
main :: IO ()
main = scotty 3000 $ do
middleware logStdoutDev
get "/:name" $ do
n <- param "name"
blaze $ helloHtml (T.pack n)