backbone-baseview.js
function () {
            var html = '';
            var template = this.template;
            if (isFunction(template)) {
                html = template(result(this, 'templateVars')) || '';
            }
            this.$el.html(html);
            this.subs.renderAppend();
            return this;
        }
function () {
            var html = '';
            var template = this.template;
            if (isFunction(template)) {
                html = template(result(this, 'templateVars')) || '';
            }
            this.$el.html(html);
            this.subs.renderAppend();
            return this;
        }
function ( ) { var html = '' ; var template = this . template ; if ( isFunction ( template ) ) { html = template ( result ( this , 'templateVars' ) ) || '' ; } this . $el . html ( html ) ; this . subs . renderAppend ( ) ; return this ; }
A basic render function that looks for a template
function, calls the template with the result of
the 'templateVars' property, and then set the html
to the result. Then, subviews are rendered and then
appended to their locations.
@memberOf Backbone.BaseView#
@return {Backbone.BaseView}
A basic render function that looks for a template function calls the template with the result of the templateVars property and then set the html to the result . Then subviews are rendered and then appended to their locations .