diff --git a/dev/tiny_httpd/Tiny_httpd_html/index.html b/dev/tiny_httpd/Tiny_httpd_html/index.html index 1212b3ca..a0661e05 100644 --- a/dev/tiny_httpd/Tiny_httpd_html/index.html +++ b/dev/tiny_httpd/Tiny_httpd_html/index.html @@ -1,4 +1,4 @@ -
Tiny_httpd_htmlHTML combinators.
This module provides combinators to produce html. It doesn't enforce the well-formedness of the html, unlike Tyxml, but it's simple and should be reasonably efficient.
module Out = Tiny_httpd_html_.OutOutput for HTML combinators.
type elt = Out.t -> unitA html element. It is represented by its output function, so we can directly print it.
Element with children, represented as a list.
Element with children, represented as a continuation.
val str_escape : Out.t -> string -> unitEscape string so it can be safely embedded in HTML text.
val attr_escape : Out.t -> string -> unitPrint the value part of an attribute
val txt : string -> eltEmit a string value, which will be escaped.
val txtf :
+Tiny_httpd_html (tiny_httpd.Tiny_httpd_html) Module Tiny_httpd_html
HTML combinators.
This module provides combinators to produce html. It doesn't enforce the well-formedness of the html, unlike Tyxml, but it's simple and should be reasonably efficient.
module Out = Tiny_httpd_html_.OutOutput for HTML combinators.
type elt = Out.t -> unitA html element. It is represented by its output function, so we can directly print it.
Element with children, represented as a list.
Element with children, represented as a continuation.
val _str_escape : Out.t -> string -> unitEscape string so it can be safely embedded in HTML text.
val _attr_escape : Out.t -> string -> unitPrint the value part of an attribute
Write a tag, with its attributes.
val txt : string -> eltEmit a string value, which will be escaped.
val txtf :
( 'a, Stdlib.Format.formatter, unit, Out.t -> unit ) Stdlib.format4 ->
'aFormatted version of txt
val raw_html : string -> eltEmit raw HTML. Caution, this can lead to injection vulnerabilities, never use with text that comes from untrusted users.
tag "menuitem", see mdn
tag "footer", see mdn
tag "footer", see mdn
tag "menu", see mdn
tag "menu", see mdn
tag "nav", see mdn
tag "nav", see mdn
module A = Tiny_httpd_html_.AAttributes.
val to_string : ?top:bool -> elt -> stringConvert a HTML element to a string.
val to_string_top : elt -> stringval to_stream : elt -> Tiny_httpd_stream.tConvert a HTML element to a stream. This might just convert it to a string first, do not assume it to be more efficient.
\ No newline at end of file
diff --git a/dev/tiny_httpd/Tiny_httpd_html_/index.html b/dev/tiny_httpd/Tiny_httpd_html_/index.html
index 62c0a520..fc32a2df 100644
--- a/dev/tiny_httpd/Tiny_httpd_html_/index.html
+++ b/dev/tiny_httpd/Tiny_httpd_html_/index.html
@@ -1,4 +1,4 @@
-Tiny_httpd_html_ (tiny_httpd.Tiny_httpd_html_) Module Tiny_httpd_html_
module Out : sig ... endOutput for HTML combinators.
type elt = Out.t -> unitA html element. It is represented by its output function, so we can directly print it.
Element with children, represented as a list.
Element with children, represented as a continuation.
val str_escape : Out.t -> string -> unitEscape string so it can be safely embedded in HTML text.
val attr_escape : Out.t -> string -> unitPrint the value part of an attribute
val txt : string -> eltEmit a string value, which will be escaped.
val txtf :
+Tiny_httpd_html_ (tiny_httpd.Tiny_httpd_html_) Module Tiny_httpd_html_
module Out : sig ... endOutput for HTML combinators.
type elt = Out.t -> unitA html element. It is represented by its output function, so we can directly print it.
Element with children, represented as a list.
Element with children, represented as a continuation.
val _str_escape : Out.t -> string -> unitEscape string so it can be safely embedded in HTML text.
val _attr_escape : Out.t -> string -> unitPrint the value part of an attribute
Write a tag, with its attributes.
val txt : string -> eltEmit a string value, which will be escaped.
val txtf :
( 'a, Stdlib.Format.formatter, unit, Out.t -> unit ) Stdlib.format4 ->
'aFormatted version of txt
val raw_html : string -> eltEmit raw HTML. Caution, this can lead to injection vulnerabilities, never use with text that comes from untrusted users.
tag "menuitem", see mdn
tag "footer", see mdn
tag "footer", see mdn
tag "menu", see mdn
tag "menu", see mdn
tag "nav", see mdn
tag "nav", see mdn
module A : sig ... endAttributes.
\ No newline at end of file