struct
Template
pub struct Template {
pub decls: Vec<Decl>,
pub nodes: Vec<Node>,
}A parsed template: a list of root nodes.
Fields
Methods
references
pub fn references(&self) -> BTreeSet<String>Names the template needs from its scope: loop bindings, lambda parameters and its own declarations excluded.
handlers
pub fn handlers(&self) -> BTreeSet<String>Names used as event handlers (@click: save → save, and a window event's @resize: measure), loop bindings excluded.
meta
pub fn meta(&self) -> Vec<(String, TextTemplate)>The page metadata a top-level meta(title: …, description: …) sets, in order. Only string values count.