paf31 / purescript-sammy

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:PureScript 69.1%Language:JavaScript 30.9%