clockfort / scotty Goto Github PK
View Code? Open in Web Editor NEWThis project forked from scotty-web/scotty
Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
License: BSD 3-Clause "New" or "Revised" License
This project forked from scotty-web/scotty
Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
License: BSD 3-Clause "New" or "Revised" License
Scotty ====== A Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp. {-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Data.Monoid (mconcat) main = scotty 3000 $ do get "/:word" $ do beam <- param "word" html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"] Scotty is the cheap and cheerful way to write RESTful, declarative web applications. * A page is as simple as defining the verb, url pattern, and Text content. * It is template-language agnostic. Anything that returns a Text value will do. * Conforms to WAI Application interface. * Uses very fast Warp webserver by default. See examples/basic.hs to see Scotty in action. > runghc examples/basic.hs Setting phasers to stun... (ctrl-c to quit) (visit localhost:3000/somepath) This design has been done in Haskell at least once before (to my knowledge) by the miku framework. My issue with miku is that it uses the Hack2 interface instead of WAI (they are analogous, but the latter seems to have more traction), and that it is written using a custom prelude called Air (which appears to be an attempt to turn Haskell into Ruby syntactically). I wanted something that depends on relatively few other packages, with an API that fits on one page. As for the name: Sinatra + Warp = Scotty. Copyright (c) 2012 Andrew Farmer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.