Module Ext_Template


module Ext_Template: sig .. end
Represents an HTML fragment template. Templates ma ...

Represents an HTML fragment template. Templates may be precompiled for greater performance.

An instance of this class may be created by passing to the constructor either a single argument, or multiple arguments:

Single argument: String/Array

The single argument may be either a String or an Array:

Multiple arguments: String, Object, Array, ...

Multiple arguments will be combined with join('').

var t = new Ext.Template(
    '<div name="{id}">',
        '<span class="{cls}">{name} {value}</span>',
    '</div>',
    // a configuration object:
    {
        compiled: true,      // compile immediately
    }
);

Notes



class type t = object .. end
class type configs = object .. end
class type events = object .. end
class type statics = object .. end
val get_static : unit -> statics Js.t
Static instance for lazy-loaded modules.
val static : statics Js.t
Static instance.
val from : 'a Js.t -> 'b Js.t Js.optdef -> 'c Js.t
See method statics.from
val of_configs : configs Js.t -> t Js.t
of_configs c casts a config object c to an instance of class t
val to_configs : t Js.t -> configs Js.t
to_configs o casts instance o of class t to a config object