Plato on Github
Report Home
renderer.js
Maintainability
80.58
Lines of code
11
Difficulty
9.35
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
// Renderer // -------- // Render a template with data by passing in the template // selector and the data to render. Marionette.Renderer = { // Render a template with data. The `template` parameter is // passed to the `TemplateCache` object to retrieve the // template function. Override this method to provide your own // custom rendering and template handling for all of Marionette. render: function(template, data){ var templateFunc = typeof template === 'function' ? template : Marionette.TemplateCache.get(template); return templateFunc(data); } };