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-4.0.0.tbz
sha256=762e5be43bce2b34844c83cc3d747d7d5887cfa008599dfe4e759af845254fbb
sha512=c4cc5e6aa5d230e82c54202e8e6af27e87b4fb055dc3d377df73982ce8c56a27575b02dd01824092aa002a15ac459cb4085d59968da84173406f2500ae80b50b
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)"
>