package xtmpl
-
xtmpl.js
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Xml = Xtmpl_xml
type attributes = tree list Xml.attributes
val node : ?loc:Xml.loc -> name -> ?atts:attributes -> tree list -> tree
val doc : Xml.prolog -> tree list -> tree Xml.doc
val atts_empty : attributes
val atts_of_list : ?atts:attributes -> (name * tree list) list -> attributes
val atts_one : ?atts:attributes -> name -> tree list -> attributes
val atts_remove : name -> attributes -> attributes
val atts_replace : name -> tree list -> attributes -> attributes
val get_att : attributes -> name -> tree list option
val get_att_cdata : attributes -> name -> string option
val opt_att : attributes -> ?def:tree list -> name -> tree list
val opt_att_cdata : attributes -> ?def:string -> name -> string
type 'a env = 'a callback Xml.Name_map.t
and !'a callback =
'a ->
'a env ->
?loc:Xml.loc ->
attributes ->
tree list ->
'a * tree list
val env_empty : unit -> 'a env
val string_of_env : 'a env -> string
type rewrite_stack = (name * attributes * tree list * Xml.loc option) list
type error =
| Loop of rewrite_stack
| Parse_error of Xml.loc * string
| Parse_attribute_error of Xml.loc option * name * string
| Invalid_attribute_value of string * tree list
| Fixpoint_limit of int
exception Error of error
val loop_error : rewrite_stack -> 'a
val parse_error : Xml.loc -> string -> 'a
val invalid_attribute_value : string -> tree list -> 'a
val string_of_error : error -> string
val string_of_rewrite_stack : rewrite_stack -> string
val from_xml_atts : Xml.str_attributes -> attributes
val to_string : ?xml_atts:bool -> tree list -> string
val atts_to_string : ?xml_atts:bool -> attributes -> Xml.str_attributes
val from_file : string -> tree list
val apply_into_file :
'a ->
?head:string ->
'a env ->
infile:string ->
outfile:string ->
'a
val apply_string_into_file :
'a ->
?head:string ->
'a env ->
outfile:string ->
string ->
'a