* [Caml-list] ANN: dispatch 0.2.0 with js_of_ocaml support
@ 2015-10-22 5:39 Spiros Eliopoulos
0 siblings, 0 replies; only message in thread
From: Spiros Eliopoulos @ 2015-10-22 5:39 UTC (permalink / raw)
To: OCaml
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
Hey List,
I'm happy to announce the latest release of dispatch. What's notable about
this release is that it includes out-of-the-box js_of_ocaml support.
Specifically, it allows you to easily set up front-end applications to use
the URI fragment to track state transitions and history. For example:
let fragment_thread =
Dispatch_js.dispatch_on_fragment ~default:"/" [
("/" , root_handler)
; ("/user/:id/", user_handler)
]
... creates a thread that will monitor for URI fragment changes and
dispatch to the appropriate handler. In addition, it will set the initial
fragment to "/" and ensure that the handler for that path is initially
called; even if the fragment was already set to "/" when the thread
started, dispatch will still occur.
Due to the API changes included in this release, webmachine[0]'s version
has been bumped to 0.2.1. You can find both the new version of dispatch and
webmachine on OPAM.
Full but short release notes can be found here:
https://github.com/inhabitedtype/ocaml-dispatch/releases/tag/0.2.0
As always, issues and pull requests welcomed.
-Spiros E.
[0]: https://github.com/inhabitedtype/ocaml-webmachine
[-- Attachment #2: Type: text/html, Size: 1683 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-22 5:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 5:39 [Caml-list] ANN: dispatch 0.2.0 with js_of_ocaml support Spiros Eliopoulos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox