package embedded_ocaml_templates
EML is a simple templating language that lets you generate text with plain OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
0.7.tar.gz
md5=c262b84b429163b6441e76554db18104
sha512=018abfb99112e355153ff00ecb5199921f01cd1311bc0943c54cba172fe66be72153f69433c3a3b440fecca02ca8be573b59b6419f4329e70dff6b2b67c66f7a
doc/src/embedded_ocaml_templates.EML_runtime/EML_runtime.ml.html
Source file EML_runtime.ml
1 2 3 4 5 6 7 8 9 10 11 12
let escape s = let buffer = Buffer.create (String.length s) in String.iter (function | '&' -> Buffer.add_string buffer "&" | '<' -> Buffer.add_string buffer "<" | '>' -> Buffer.add_string buffer ">" | '"' -> Buffer.add_string buffer """ | '\'' -> Buffer.add_string buffer "'" | c -> Buffer.add_char buffer c) s ; Buffer.contents buffer
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>