Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukehoersten/snap-utils
Utilities for Snap Framework apps.
https://github.com/lukehoersten/snap-utils
Last synced: 8 days ago
JSON representation
Utilities for Snap Framework apps.
- Host: GitHub
- URL: https://github.com/lukehoersten/snap-utils
- Owner: lukehoersten
- Created: 2014-03-09T04:18:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-09T22:20:58.000Z (almost 11 years ago)
- Last Synced: 2024-03-15T12:51:11.937Z (10 months ago)
- Language: Haskell
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snap Utils
## Overview
`Snap.Utils` provides helper modules for making web apps with Snap
Framework. The underlying design goal is to rely on more traditional
HTTP-based methods of stateless control flow instead of relying on
cookies and server state continuations.See
[snap-utils Hackage package](http://hackage.haskell.org/package/snap-utils)
for more information.## Modules
### Alerts
`Alerts` uses GET request URI query parameters to display an alert on
the next response page.### Environment
`Environment` splices the `-e` runtime environment (ex: devel, prod,
etc.) name into a template tag. This allows for splicing certain
content only when in a specific runtime environment.### Error Logger
`ErrorLogger` catches exceptions that are thrown all the way to the
top of the site and handles them cleanly without crashing the
application server.### Target Page
`TargetPage` captures the desired target page when interim pages
need to be visited first before continuing onto the target page
afterwards.