define(['sail',
        'anchor/events',
        'anchor/class'],
function(sail, events, clazz) {
  
  function View(el, options) {
    View.super_.call(this);
    // TODO: Pass options (locals) to render
    this.el = typeof el == 'string' ? sail.$(sail.render(el, options)) : el;
  }
  clazz.inherits(View, events.EventEmitter);
  
  return View;
});

@@ -161,72 +161,159 @@
     
-// TODO: Pass options (locals) to render%0A    this.el = 
+%0A    if (typeof el == 'string') %7B%0A      var render = sail.render%0A        , $ = sail.$;%0A      %0A      var out = render(el, options);%0A      if (
 typeof 
-el
+out
  == 
@@ -324,49 +324,164 @@
 ing'
- ? sail.$(sail.render(el, options)) : el;
+) %7B%0A        this.el = $(out);%0A      %7D else if (typeof out == 'function') %7B%0A        this.el = $(out(options));%0A      %7D%0A    %7D else %7B%0A      this.el = el;%0A    %7D
 %0A  %7D

Implement support for template functions returned by render.