Skip to content

[UNMAINTAINED] BuckleScript bindings to the Director router

Notifications You must be signed in to change notification settings

reasonml-community/bs-director

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[UNMAINTAINED] bs-director

BuckleScript bindings to the Director router.

NOTE: This repository is unmaintained. If you'd like to maintain it, please either make an issue in the meta repository, or bring it up in Discord.

npm i bs-director

Usage

let router =
  DirectorRe.makeRouter({
    "/": () => Js.log("Navigated to tasks list"),
    "/active": () => Js.log("Navigated active tasks list"),
    "/profile/:userid": (userid: string) => Js.log("Navigated to profile for: " ++ userid),
    "/completed": () => Js.log("Completed a task")
  });

/* Optional configuration */
DirectorRe.configure(router, {"foo": "bar"});

DirectorRe.init(router, "/");

About

[UNMAINTAINED] BuckleScript bindings to the Director router

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages