1AppRegistry.registerBundle({applicationId:'pre-render-manager|1.0.1',bundle: {"en":{"dynamicPageTemplates":"Templates for dynamic pages","settings":"Settings"},"sv":{"dynamicPageTemplates":"Mallar för dynamiska sidor","settings":"Inställningar"}}}); 2AppRegistry.registerModule({applicationId:'pre-render-manager|1.0.1',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 3var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 4with(obj||{}){ 5__p+=''; 6} 7return __p; 8};});}}); 9AppRegistry.registerModule({applicationId:'pre-render-manager|1.0.1',path:'/main',module:function(define){'use strict';define(function(require) { 10 'use strict'; 11 12 var _ = require('underscore'); 13 var Component = require('Component'); 14 var template = require('/template/main'); 15 16 return Component.extend({ 17 18 template: template, 19 20 filterState: function(state) { 21 return _.extend({}, state); 22 }, 23 templateFunctions: function() { 24 var _this = this; 25 26 return { 27 // Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present 28 renderPartial: function(partialName, data) { 29 var template = require('/template/partials/' + partialName); 30 if (template) { 31 if (data) { 32 return _this.renderTemplate(template, data); 33 } else { 34 return _this.renderTemplate(template, _this.state); 35 } 36 } else { 37 return 'No partial template found'; 38 } 39 } 40 } 41 } 42 }); 43 });}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.