package yurt

  1. Overview
  2. Docs
module Tag : sig ... end
type t = {
  1. tag : Tag.t;
  2. mutable attrs : (string * string) list;
  3. mutable content : string option;
  4. mutable children : t list;
}
val replace : t -> string -> t -> t
val tag : ?attr:(string * string) list -> ?content:string option -> ?children:t list -> Tag.t -> t
val var : string -> t
val import : string -> t
val html : ?attr:(string * string) list -> ?content:string -> t list -> t
val body : ?attr:(string * string) list -> ?content:string -> t list -> t
val head : ?attr:(string * string) list -> ?content:string -> t list -> t
val meta : (string * string) list -> t
val script : ?attr:(string * string) list -> string -> t
val canvas : ?content:string -> (string * string) list -> t
val style : ?attr:(string * string) list -> string -> t
val iframe : (string * string) list -> t
val div : ?attr:(string * string) list -> ?content:string -> t list -> t
val p : ?attr:(string * string) list -> ?children:t list -> string -> t
val span : ?attr:(string * string) list -> ?content:string -> t list -> t
val h1 : ?attr:(string * string) list -> ?children:t list -> string -> t
val h2 : ?attr:(string * string) list -> ?children:t list -> string -> t
val h3 : ?attr:(string * string) list -> ?children:t list -> string -> t
val h4 : ?attr:(string * string) list -> ?children:t list -> string -> t
val h5 : ?attr:(string * string) list -> ?children:t list -> string -> t
val h6 : ?attr:(string * string) list -> ?children:t list -> string -> t
val header : ?attr:(string * string) list -> ?content:string -> t list -> t
val main : ?attr:(string * string) list -> ?content:string -> t list -> t
val nav : ?attr:(string * string) list -> ?content:string -> t list -> t
val article : ?attr:(string * string) list -> ?content:string -> t list -> t
val section : ?attr:(string * string) list -> ?content:string -> t list -> t
val aside : ?attr:(string * string) list -> ?content:string -> t list -> t
val ul : ?attr:(string * string) list -> ?content:string -> t list -> t
val ol : ?attr:(string * string) list -> ?content:string -> t list -> t
val li : ?attr:(string * string) list -> ?content:string -> t list -> t
val text : ?attr:(string * string) list -> string -> t
val label : ?attr:(string * string) list -> string -> t
val a : ?children:t list -> (string * string) list -> string -> t
val img : (string * string) list -> t
val textarea : ?attr:(string * string) list -> string -> t
val input : (string * string) list -> t
val select : ?attr:(string * string) list -> t list -> t
val opt : ?attr:(string * string) list -> string -> t
val form : ?attr:(string * string) list -> t list -> t
val mk_form : ?attr:(string * string) list -> (string * string) list list -> string -> t
val audio : ?attr:(string * string) list -> ?content:string -> t list -> t
val video : ?attr:(string * string) list -> ?content:string -> t list -> t
val source : (string * string) list -> t
val title : string -> t
val inline : string -> t
val string_of_attrs : t -> string
val string_of_content : t -> string
val string_of_children : t -> string
val to_string : t -> string
val templates : (string, t) Stdlib.Hashtbl.t
val template_exists : string -> bool
val get_template : string -> t
val set_template : string -> t -> unit
val loadfile : string -> unit
OCaml

Innovation. Community. Security.