rowdy: An EDSL for web application routes.

[ bsd3, library, web ] [ Propose Tags ] [ Report a vulnerability ]

Please see the README on Github at https://github.com/parsonsmatt/rowdy#readme


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), containers, dlist, mtl [details]
License BSD-3-Clause
Copyright 2018 Matt Parsons
Author Matt Parsons
Maintainer parsonsmatt@gmail.com
Category Web
Home page https://github.com/parsonsmatt/rowdy#readme
Bug tracker https://github.com/parsonsmatt/rowdy/issues
Source repo head: git clone https://github.com/parsonsmatt/rowdy
Uploaded by parsonsmatt at 2018-04-02T02:49:58Z
Distributions NixOS:0.0.1.0
Reverse Dependencies 1 direct, 1 indirect [details]
Downloads 869 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-04-14 [all 1 reports]

Readme for rowdy-0.0.1.0

[back to package description]

rowdy

The core routing DSL for rowdy. Check the GitHub repo for more information and examples.

-- Yesod-style:
routes = do
    get "RootR"
    "users" // do
        resource "UserIndexR" [get, post]
        capture @Int // resource "UserR" [get, put]
    "admin" // "Admin" /: do
        get "PanelR" ! "admin" ! "cool"
        post "PanelR" ! "admin"
    "other-attr" // "safe" /! do
        get "SafeR"
        put "SafeR"