package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb
doc/src/ppx_bonsai/test_extension.ml.html
Source file test_extension.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23open Ppxlib let expect_test ~loc structure_item = [%stri [%%expect_test [%%i structure_item]]] let create_structure ~loc structure_item _binding = [ expect_test ~loc structure_item ] let register () = let ppx_name = "expect_test.bonsai" in Driver.register_transformation ppx_name ~rules: [ Context_free.Rule.extension (Extension.declare_inline ppx_name Structure_item Ast_pattern.(pstr (as__ (pstr_value nonrecursive (__ ^:: nil)) ^:: nil)) (fun ~loc ~path:_ structure_item binding -> create_structure ~loc structure_item binding)) ] ;; module For_testing = struct let create_structure = create_structure end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>