package owebview

  1. Overview
  2. Docs
OCaml bindings for the webview library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
md5=96958382fcfef04cc489a87b392abd65
sha512=0494c253643890138099fb14023476d4fef95299449c118301461efa0d2e316bf37a326a76bcf8d29512cdb621c144d06deb76ac5e22adeab76f9fae8a443d24

doc/owebview/Webview/Utils/index.html

Module Webview.UtilsSource

Filesystem helpers for locating on-disk assets (HTML/CSS/JS) relative to the running executable, independently of the current working directory.

Sourceval exe_dir : unit -> string

Absolute path to the directory containing the running executable.

Sourceval asset_dir : unit -> string

Directory to resolve on-disk assets against. When launched via dune exec, the executable lives under _build/<context>/, where the source assets are not copied; this maps such a path back to the matching source directory. From an installed location the executable directory is used as-is.

Sourceval web_dir : unit -> string

Directory to resolve web assets against. This is asset_dir/web.