Plato on Github
Report Home
renderer.js
Maintainability
76.32
Estimated # Bugs
0.05
Difficulty
9.50
SLOC/LSLOC
12 / 5
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); var html = templateFunc(data); return html; } };