public void Bind(string key, SillyView view) { if (view == null || view.Html == null) { TextNode errorNode = new TextNode("Error binding " + key + ": no view or HTML to bind"); BindVals[key] = new SillyTextAttribute(key, errorNode); return; } BindVals[key] = new SillyWidgetAttribute(key, view.Html.Root); }
public void Bind(string key, string text) { BindVals[key] = new SillyTextAttribute(key, new TextNode(text)); }