package ppx_string
Ppx extension for string interpolation
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=06b4e061fb5e2b2a85298c9829cc31a1af0a9b8e63fdee9048c76ec8d52d16ef
doc/ppx_string/Ppx_string/index.html
Module Ppx_string
Source
Used to configure different instances of this ppx. May be used, for example, to add preprocessing, or to interpolate a different string-like type.
Source
val parse :
config:Config.t ->
string_loc:Ppxlib.location ->
delimiter:Base.string Base.option ->
Base.string ->
Parse_result.t
Parse a string to find interpolated substrings.
Interpret an interpolated string as an expression, including %conversions#String
and %padding#:8
.
Source
val expand :
config:Config.t ->
expr_loc:Ppxlib.location ->
string_loc:Ppxlib.location ->
string:Base.string ->
delimiter:Base.string Base.option ->
Ppxlib.expression
Combines parse
, interpret
, and concatenation to expand an interpolated string to an expression implementing it.
Construct an Extension.t
implementing the configured interpolation ppx.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>