OASISFormat: 0.4
Name:        dispatch
Version:     0.3.0
Synopsis:    Path-based dispatching for client- and server-side applications.
Description: Dispatch provides a basic mechanism for dispatching a request to a
  handler based on hierarchical path names conventionally found in URIs. It can be
  used both for dispatching requests in a server, as well as handing changes to
  hierarchical fragments in a client-side application.
Authors:     Spiros Eliopoulos <spiros@inhabitedtype.com>
Maintainers: Spiros Eliopoulos <spiros@inhabitedtype.com>
Homepage:    https://github.com/inhabitedtype/ocaml-dispatch
Copyrights:  (C) 2015 Inhabited Type LLC
License:     BSD-3-clause
Plugins:     META (0.4), DevFiles (0.4)
BuildTools:  ocamlbuild

Flag js_of_ocaml
  Description: build the Javascript dispatch library
  Default$: false

Library dispatch
  Path:             lib
  Modules:          Dispatch
  BuildDepends:     result

Library js
  Path:             js
  Findlibname:      js
  Findlibparent:    dispatch
  Build$:           flag(js_of_ocaml)
  Install$:         flag(js_of_ocaml)
  BuildDepends:     dispatch, js_of_ocaml, js_of_ocaml.ppx, result
  XMETARequires:    dispatch, js_of_ocaml, js_of_ocaml.ppx, result
  Modules:          Dispatch_js

Document api
  Title:                Documentation and API reference
  Type:                 ocamlbuild (0.4)
  BuildTools+:          ocamldoc
  Install:              true
  XOCamlbuildPath:      doc
  XOCamlbuildModules:   lib/Dispatch, js/Dispatch_js

Executable test_dispatch
  Path:             lib_test
  MainIs:           test_dispatch.ml
  Build$:           flag(tests)
  CompiledObject:   best
  Install:          false
  BuildDepends:     dispatch, result, oUnit (>= 1.0.2)

Test test_dispatch
  Run$:             flag(tests)
  Command:          $test_dispatch
  WorkingDirectory: lib_test

SourceRepository master
  Type:     git
  Location: https://github.com/inhabitedtype/ocaml-dispatch.git
  Browser:  https://github.com/inhabitedtype/ocaml-dispatch
