package xtmpl
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Misc functions.
val map_string : (Buffer.t -> Sedlexing.lexbuf -> 'a) -> string -> string
map_string lexer string
creates an empty buffer with same initial length as the string, and a lexbuf from string
. It passes them to the lexer
, then returns the contents of the buffer. The lexer is supposed to fill the buffer. If the Sedlexing.Malformed
exception is raised, then the Failure
exception is raised with a message.
Replace the following characters: <
by <
, >
by >
, &
by &
. Also replace simple and double quotes by '
and "
if quotes = true
(which is false by default).
val string_of_pp : (Format.formatter -> 'a -> unit) -> 'a -> string
string_of_pp pp x
uses pretty-printing function pp
on x
to print in a buffer and return a string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>