package xtmpl
-
xtmpl.js
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val pos : ?file:string -> line:int -> bol:int -> char:int -> unit -> pos
val string_of_loc : loc -> string
val loc_sprintf : loc option -> ('a, unit, string) Stdlib.format -> 'a
type !'a with_loc = 'a * loc option
type error = loc * string
exception Error of error
val error : loc -> string -> 'a
val string_of_error : (loc * string) -> string
module Name_ord : sig ... end
module Name_map : sig ... end
module Name_set : sig ... end
type 'a attributes = 'a Name_map.t
type str_attributes = string with_loc attributes
val node : ?loc:loc -> name -> ?atts:str_attributes -> tree list -> tree
val prolog_comment : ?loc:loc -> string -> prolog_misc
val prolog_pi : ?loc:loc -> name -> string -> prolog_misc
val xml_decl : ?loc:loc -> str_attributes -> xml_decl
val prolog : ?decl:xml_decl -> ?doctype:doctype -> prolog_misc list -> prolog
val from_file : string -> tree list
val to_string : tree list -> string
val atts_empty : 'a attributes
val atts_of_list : ?atts:'a attributes -> (name * 'a) list -> 'a attributes
val atts_one : ?atts:'a attributes -> name -> 'a -> 'a attributes
val atts_remove : name -> 'a attributes -> 'a attributes
val atts_replace : name -> 'a -> 'a attributes -> 'a attributes
val get_att : 'a attributes -> name -> 'a option
val opt_att : str_attributes -> ?def:string -> name -> string * loc option
val string_of_atts : str_attributes -> string