Shpadoinkle-disembodied: Shpadoinkle as a static site.

[ bsd3, library, web ] [ Propose Tags ]

Static site backed SPA applications.

[Skip to Readme]


[Last Documentation]

  • Shpadoinkle
    • Shpadoinkle.Disembodied


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],
Dependencies base (>=4.12.0 && <4.16), directory, filepath, servant, Shpadoinkle, Shpadoinkle-backend-static, Shpadoinkle-html, Shpadoinkle-router, text (>=1.2.3 && <1.3), unliftio [details]
License BSD-3-Clause
Author Isaac Shapira
Category Web
Uploaded by fresheyeball at 2021-06-02T18:05:03Z
Downloads 242 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-06-02 [all 2 reports]

Readme for Shpadoinkle-disembodied-

[back to package description]

Shpadoinkle Disembodied

Goldwater Haddock BSD-3 built with nix Hackage Hackage Deps Hackage CI

This module provides static site generation tools for Html.


Lets say you have the following API routes for you SPA application:

type Pages m
  = "about" :> View m Int
  :<|> View m ()

And you have a view for each. You can now produce a SiteSpec mapping these routes to the views.

site :: SiteSpec () (Pages m)
site = about 0 :<|> const home

Which can be written to static pages with writeSite. Each route will become a directory, and each View will become an index.html file in that directory.