package dream-html
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
HTML generator eDSL for Dream
Install
dune-project
Dependency
Authors
Maintainers
Sources
dream-html-3.11.2.tbz
sha256=ece5aa53d17f5df311842a2ca528b537547f5ed8f88f9a64d292462dae9ff0b5
sha512=7dec8608c53a2e7c611ce3bc624ac7364aaf5d645e2927e4a0883321da87a9ab880a07f12cdaa9c812f092ca4880f5fc9e8d9d2e62144e9d08b412f3c58c0473
doc/ppx/Ppx/index.html
Module PpxSource
This PPX provides an extension point to create route paths.
You can add it to your dune file in the usual way: (preprocess (pps dream-html.ppx)).
Then create a path: let%path orders = "/orders".
And use it in a route: Dream_html.get orders (fun req -> ...).
The PPX expands the above path to:
let orders = Dream_html.path "/orders" "/orders"Ie, it just duplicates the path string to use as two separate format strings with different types for parsing and printing. If you need to actually have a different format string for printing (eg if you need to print the path with query parameters), you can use the underlying Dream_html.path function directly: path "/orders/%s" "/orders/%s?utm_src=%s&utm_campaign=%s".
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>