package tyxml

  1. Overview
  2. Docs
TyXML is a library for building statically correct HTML5 and SVG documents

Install

Dune Dependency

Authors

Maintainers

Sources

4.2.0.tar.gz
sha256=cda9dda443d479fadd1f4b8f882aef2a78c6e7ca7cbc95d886dfc5743f86ff9a
md5=c802f3c7036adcea3fc00398c23d1b2b

doc/tyxml.functor/Svg_f/index.html

Module Svg_f

Typesafe constructors for SVG documents (Functorial interface)

This module is experimental, it may lack of some attributes, and the interface is very low level and do not take deeply into account the needs of SVG elements.

See <<a_manual chapter="functors"|the manual of the functorial interface>>.

module Make (Xml : Xml_sigs.T with type ('a, 'b) W.ft = 'a -> 'b) : Svg_sigs.Make(Xml).T with type +'a elt = Xml.elt and type +'a attrib = Xml.attrib

Create a new implementation of Svg, using the given underlying Xml implementation. Will output a module of type Svg_sigs.T with the various type equalities.

module Wrapped_functions (Xml : Xml_sigs.T with type ('a, 'b) W.ft = 'a -> 'b) : Svg_sigs.Wrapped_functions with module Xml = Xml

The standard set of wrapped functions, when W.ft is the regular function.

Similar to Make but with a custom set of wrapped functions.

OCaml

Innovation. Community. Security.