1AppRegistry.registerBundle({applicationId:'pre-render|0.1.0',bundle: {"en":{},"sv":{}}}); 2AppRegistry.registerModule({applicationId:'pre-render|0.1.0',path:'/template/partials/message',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+='<h1>'+ 6((__t=( message ))==null?'':__t)+ 7'</h1>'; 8} 9return __p; 10};});}}); 11AppRegistry.registerModule({applicationId:'pre-render|0.1.0',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 12var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 13with(obj||{}){ 14__p+=''; 15} 16return __p; 17};});}}); 18AppRegistry.registerModule({applicationId:'pre-render|0.1.0',path:'/main',module:function(define){'use strict';define(function(require) { 19 'use strict'; 20 21 var _ = require('underscore'); 22 var Component = require('Component'); 23 var template = require('/template/main'); 24 25 return Component.extend({ 26 27 template: template, 28 29 filterState: function(state) { 30 return _.extend({}, state); 31 }, 32 templateFunctions: function() { 33 var _this = this; 34 35 return { 36 // Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present 37 renderPartial: function(partialName, data) { 38 var template = require('/template/partials/' + partialName); 39 if (template) { 40 if (data) { 41 return _this.renderTemplate(template, data); 42 } else { 43 return _this.renderTemplate(template, _this.state); 44 } 45 } else { 46 return 'No partial template found'; 47 } 48 } 49 } 50 } 51 }); 52 });}});
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.