package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/src/ppx_bonsai/ppx_bonsai.ml.html
Source file ppx_bonsai.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
open Ppxlib open Ppx_let_expander open Ppx_bonsai_expander let locality = `global let ext t extension_kind = Extension.declare_with_path_arg (ext_full_name t ~locality extension_kind) Extension.Context.expression Ast_pattern.(single_expr_payload __) (fun ~loc:_ ~path:_ ~arg expr -> expand t extension_kind ~locality ~modul:arg expr) ;; let () = Driver.register_transformation "bonsai" ~extensions: [ ext sub Extension_kind.default ; ext sub Extension_kind.default_open ; ext arr Extension_kind.default ; ext arr Extension_kind.default_open ] ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>