Example #1
0
        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);
        }
Example #2
0
 public void Bind(string key, string text)
 {
     BindVals[key] = new SillyTextAttribute(key, new TextNode(text));
 }