package tyxml-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

TyXML ppx library.

This is the documentation for the internal ppx library. Documentation for the ppx itself is available <<a_manual chapter="ppx"|here>>.

type lang =
  1. | Html
  2. | Svg
val markup_to_expr : lang -> Ppxlib.Location.t -> Ppxlib.expression list -> Ppxlib.expression

Given the payload of a %html ... or %svg ... expression, converts it to a TyXML expression representing the markup contained therein.

val expand_expr : lang:lang -> loc:Ppxlib.Location.t -> path:string -> arg:Ppxlib.Longident.t Ppxlib.Asttypes.loc option -> Ppxlib.expression -> Ppxlib.attribute list -> Ppxlib.expression
val expand_str_item : lang:lang -> loc:Ppxlib.Location.t -> path:string -> arg:Ppxlib.Longident.t Ppxlib.Asttypes.loc option -> Ppxlib.rec_flag -> Ppxlib.value_binding list -> Ppxlib.structure_item
OCaml

Innovation. Community. Security.