nl_tokens: Called on your view when it should push strings of HTML into a Ember . RenderBuffer . Most users will want to override the template or templateName properties instead of this method .
pl_tokens: function ( buffer ) { // If this view has a layout, it is the responsibility of the // the layout to render the view's template. Otherwise, render the template // directly. var template = get ( this , 'layout' ) || get ( this , 'template' ) ; if ( template ) { var context = get ( this , 'context' ) ; var keywords = this . cloneKeywords ( ) ; var output ; var data = { view : this , buffer : buffer , isRenderData : true , keywords : keywords , insideGroup : get ( this , 'templateData.insideGroup' ) } ; // Invoke the template with the provided template context, which // is the view's controller by default. A hash of data is also passed that provides // the template with access to the view and render buffer. Ember . assert ( 'template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead?' , typeof template === 'function' ) ; // The template should write directly to the render buffer instead // of returning a string. output = template ( context , { <mask> : data } ) ; // If the template returned a string instead of writing to the buffer, // push the string onto the buffer. if ( output !== undefined ) { buffer . push ( output ) ; } } }