MattCheely/tryframe-coordinator/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

FrameRouter

The FrameRouter module is the Elm code that backs the frame-router custom element in the iframe-coordinator toolkit. It handles mapping URL routes to components displayed in a child frame as well as message validation and routing within the parent application.

This module is not currently designed for stand-alone use. You should instead use the custom elements defined in LINK_TO_JS_LIB to create seamless iframe applications

createRouter : ((Value -> Msg) -> Sub Msg) -> Program Value Model Msg

Create a program to handle routing. Takes an input port to listen to messages on. port binding is handled in the custom frame-router element in LINK_TO_JS_LIB_HERE