3 var Handlebars = require('handlebars/runtime').default;
7 function Widget(widgetName, model) {
9 var prerenderedText = this.getPrerendered(widgetName, model.hash, id);
11 if (!this.prerenderedViews) {
12 this.prerenderedViews = {};
15 this.prerenderedViews[id] = {
16 widgetName: widgetName,
20 return new Handlebars.SafeString(prerenderedText);
23 module.exports = Widget;