package oui

  1. Overview
  2. Docs
A tool that builds standalone installers for your OCaml applications

Install

dune-project
 Dependency

Authors

Maintainers

Sources

oui-0.1.0.tbz
sha256=b806a63c9acd581a00729a48f1faf86b294cc82936fc705fc628a20ede33f977
sha512=e61c35a6e08671634c1edabd7b0add926ac6e0c6c43c9e0a095e89efab7696b6ae5cc1ea0844283a80640c19adb36478bdfb2414bbcab5077ceb7fd16ae45e66

doc/oui.lib/Oui/String_with_vars/index.html

Module Oui.String_with_varsSource

Sourcetype t
Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval of_string : string -> t

Builds a string with variables from the raw string

Sourceval to_string : t -> string

Returns the raw string with variables unexpanded

Sourcetype subst_result = {
  1. subst_string : string;
  2. unknown_vars : string list;
}
Sourceval subst : install_path:string -> t -> subst_result

Return the input strings with known variables substituted by the provided values and the list of unknown variables that were found in the input. E.g. subst ~install_path:"XX" "<install_path>/lib/<unknown>" will return {subst_string = "XX/lib/<unknown>"; unknown_vars = ["<unknown>"]}.