Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamfrey/ring-html5-handler
A simple ring handler for serving a site using HTML5 History routes
https://github.com/adamfrey/ring-html5-handler
Last synced: 22 days ago
JSON representation
A simple ring handler for serving a site using HTML5 History routes
- Host: GitHub
- URL: https://github.com/adamfrey/ring-html5-handler
- Owner: AdamFrey
- License: mit
- Created: 2015-09-25T17:36:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T20:14:50.000Z (over 7 years ago)
- Last Synced: 2024-08-16T17:48:50.862Z (3 months ago)
- Language: Clojure
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ring-html5-handler
[![Clojars Project](https://clojars.org/afrey/ring-html5-handler/latest-version.svg)](https://clojars.org/afrey/ring-html5-handler)
A simple ring handler for serving a site using HTML5 History
routes. The handler serves assets from the resource paths, and serves
the `index.html` resource for any unmatched route, to be handled by
the JS/CLJS router.## Usage
With [boot-http](https://github.com/pandeiro/boot-http):
```
(require '[pandeiro.boot-http :refer [serve]])(serve :handler 'afrey.ring-html5-handler/handler)
```With [lein-ring](https://github.com/weavejester/lein-ring):
```
:ring {:handler afrey.ring-html5-handler/handler}
```Or use it with any other `ring` compatible server.