Package

purescript-sammy

Repository
purescript-contrib/purescript-sammy
License
MIT
Uploaded by
paf31
Published on
2017-03-29T03:57:11Z

Maintainer: paf31 Sammy: 0.7.6

PureScript bindings for Sammy.js, a Javascript, browser-based Sinatra-clone.

Features

  • HTTP verbs: GET, PUT, POST, DELETE
  • Extraction of parameters with params, returns a list of parameters with a name, empty list if no parameter present, single element if only one parameter exists.
  • Sammy.js events and event bindings (only by string-name for now)
  • Redirect to a route

Usage

To build the test project, clone this repo and then run:

pulp dep update
pulp build
pulp test -r cat > examples/index.js

To use this library in your own project:

pulp dep i purescript-sammy
Modules
Sammy
Dependencies