}
}
+// Pending tells if a line of the view is not built yet.
+func (v *View) Pending() bool {
+ for _, line := range v.lines {
+ _, built := v.nodes[line]
+ if !built {
+ return true
+ }
+ }
+
+ return false
+}
+
// Render returns the view as the model reads it: one line "id+n|text" for each
// node inside <chat> tags, with the newlines of the text as spaces.
func (v *View) Render() string {