code: function() {
          var context = root.serialize;
          var template = root.template;
  
          // Create a deferred specifically for fetching.
          def = root.deferred();
  
          // If data is a function, immediately call it.
          if (_.isFunction(context)) {
            context = context.call(root);
          }
  
          // Set the internal callback to trigger once the asynchronous or
          // synchronous behavior has completed.
          manager.callback = function(contents) {
            // Clean up asynchronous manager properties.
            delete manager.isAsync;
            delete manager.callback;
  
            done(context, contents);
          };
  
          // Set the url to the prefix + the view's template property.
          if (typeof template === "string") {
            url = root.prefix + template;
          }
  
          // Check if contents are already cached and if they are, simply process
          // the template with the correct data.
          if (contents = LayoutManager.cache(url)) {
            done(context, contents, url);
  
            return def;
          }
  
          // Fetch layout and template contents.
          if (typeof template === "string") {
            contents = root.fetchTemplate.call(root, root.prefix +
              template);
          // If the template is already a function, simply call it.
          } else if (typeof template === "function") {
            contents = template;
          // If its not a string and not undefined, pass the value to `fetch`.
          } else if (template != null) {
            contents = root.fetchTemplate.call(root, template);
          }
  
          // If the function was synchronous, continue execution.
          if (!manager.isAsync) {
            done(context, contents);
          }
  
          return def;
        }
docs: This `render` function is what gets called inside of the View render, when `manage(this).render` is called.  Returns a promise that can be used to know when the element has been rendered into its parent.