package tyxml-ppx
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
PPX to write TyXML documents with the HTML syntax
Install
dune-project
Dependency
Authors
Maintainers
Sources
tyxml-5.0.0.tbz
sha256=c725bb8918ff1b601e7926b7b6b4799f8f4ab70f5fba9f0970da657cb82c07f2
sha512=61881aa7101b5072b887802e78897920516c9c2b484d51ac281509e83c79969c7654caa31b125ad843b45740dfe143ed5218fd7e4d98dfba8e0b24b272308ed6
doc/src/tyxml_ppx_register/tyxml_ppx_register.ml.html
Source file tyxml_ppx_register.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 25open Ppxlib let str_item_expansion name lang = Extension.declare_with_path_arg name Extension.Context.structure_item Ast_pattern.(pstr ((pstr_value __ __) ^:: nil)) (Tyxml_ppx.expand_str_item ~lang) let expr_expansion name lang = Extension.declare_with_path_arg name Extension.Context.expression Ast_pattern.(pstr ((pstr_eval __ __) ^:: nil)) (Tyxml_ppx.expand_expr ~lang) let () = let extensions = [ expr_expansion "tyxml.html" Html; expr_expansion "tyxml.svg" Svg; str_item_expansion "tyxml.html" Html; str_item_expansion "tyxml.svg" Svg; ] in Ppxlib.Driver.register_transformation ~extensions "tyxml"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>