Skip to content
PureScript bindings for Sammy.js, a Javascript, browser-based Sinatra-clone.
PureScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
generated-docs
src
test
.gitignore
LICENSE
README.md
bower.json
psc-package.json

README.md

purescript-sammy

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
You can’t perform that action at this time.