package oui
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
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/src/oui.lib/string_with_vars.ml.html
Source file string_with_vars.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40(**************************************************************************) (* *) (* Copyright 2025 OCamlPro *) (* *) (* All rights reserved. This file is distributed under the terms of the *) (* GNU Lesser General Public License version 2.1, with the special *) (* exception on linking described in the file LICENSE. *) (* *) (**************************************************************************) type t = string [@@deriving yojson] type subst_result = { subst_string : string ; unknown_vars : string list } [@@deriving show] let of_string x = x let to_string x = x module String_set = Set.Make(String) let var_regexp = Re.compile (Re.Posix.re "<[A-Za-z_]+>") let subst ~install_path t = let unknown_vars = ref String_set.empty in let subst_string = Re.replace ~all:true var_regexp ~f:(fun group -> match Re.Group.get group 0 with | "<install_path>" -> install_path | s -> unknown_vars := String_set.add s !unknown_vars; s) t in { subst_string; unknown_vars = String_set.elements !unknown_vars }
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>