package ppxlib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Standard infrastructure for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppxlib-0.38.0.tbz
sha256=89e049b3102f6670a213d34d802ea3ab0fc530a8959d2f1a1e8db830063429a3
sha512=2fbbf124fc61e1f22242d13505e9af39d4a3c7cf03def1c33ee8bd915195be9b817636667302e9c6ceddc74a9a4a54926340e21c96fd770a2bc6752400315cfd
doc/ppxlib/Ppxlib/Driver/Cookies/index.html
Module Driver.CookiesSource
Source
val get :
t ->
string ->
(Astlib.Ast_502.Parsetree.expression, 'a -> 'a, 'b) Ast_pattern.t ->
'b optionget cookies name pattern look for a cookie named name and parse it using pattern. Raises if the parsing fails.
Source
val get_res :
t ->
string ->
(Astlib.Ast_502.Parsetree.expression, 'a -> 'a, 'b) Ast_pattern.t ->
('b option, Location.Error.t Stdppx.NonEmptyList.t) resultget cookies name pattern look for a cookie named name and parse it using pattern, returning a result instead of raising when the parsing fails.
set cookies name expr set cookie name to expr.
Register a callback that is called before a rewriting. The handler is expected to lookup some cookies and set some global variables.
This API is a temporary hack to allow to migrate from add_arg to the use of cookie, until ppxlib has been upgraded to pass cookies through.
Source
val add_simple_handler :
string ->
(Astlib.Ast_502.Parsetree.expression, 'a -> 'a, 'b) Ast_pattern.t ->
f:('b option -> unit) ->
unitShorthand for: add_handler (fun t -> f (get t name pattern))
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>