Last active
December 19, 2015 16:19
-
-
Save rex/5982767 to your computer and use it in GitHub Desktop.
Handlebars precompiled templates output using various different settings (all minified, though, for display)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* handlebars dashboard.hb -f output.js -a | |
*/ | |
define(['handlebars'], function(Handlebars) { | |
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; | |
return templates['dashboard.hb'] = template(function (Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [4,'>= 1.0.0']; | |
helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {}; | |
var buffer = "", stack1, self=this; | |
function program1(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\n "; | |
stack1 = self.invokePartial(partials['msg/_inboxselect'], 'msg/_inboxselect', depth0, helpers, partials, data); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n "; | |
return buffer; | |
} | |
function program3(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\n "; | |
stack1 = self.invokePartial(partials['msg/_labelselect'], 'msg/_labelselect', depth0, helpers, partials, data); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n "; | |
return buffer; | |
} | |
buffer += "<div class=\"cal-header\">\n MESSAGE CENTER\n <div class=\"white-line\"></div><br>\n</div>\n\n<div class=\"spacer\"></div>\n<a href=\"#\" id=\"message_create\" class=\"invitesLink\">Create New Message</a>\n<div class=\"spacer\"></div>\n<div class=\"background-panel-cal\">\n <form id=\"form-back\">\n <input type=\"text\" placeholder=\"Search Message Center\" disabled />\n </form>\n</div>\n\n<div class=\"invitesLink\">Inboxes</div>\n\n<!-- This is the set of standard inboxes -->\n<div id=\"msgInterface_dashboard_inboxList\">\n "; | |
stack1 = helpers.each.call(depth0, depth0.inboxes, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n</div>\n\n\n<div class=\"invitesLink\"><br>Labels<br><br></div>\n\n<div class=\"background-panel-cal\">\n <form id=\"form-back\">\n <div class=\"row collapse\">\n <input type=\"text\" class=\"xxx\" placeholder=\"Create New Label\" />\n </div>\n </form>\n</div>\n\n\n<div id=\"msgInterface_dashboard_labelList\">\n "; | |
stack1 = helpers.each.call(depth0, depth0.labels, {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data}); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n</div>\n\n<div class=\"spacer\" style=\"height: 20px;\"></div>"; | |
return buffer; | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* handlebars dashboard.hb -f output.js -c /usr/local/lib/node_modules/handlebars/lib/handlebars.js | |
*/ | |
var Handlebars = require("/usr/local/lib/node_modules/handlebars/lib/handlebars.js"); var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; | |
templates['dashboard.hb'] = template(function (Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [4,'>= 1.0.0']; | |
helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {}; | |
var buffer = "", stack1, self=this; | |
function program1(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\n "; | |
stack1 = self.invokePartial(partials['msg/_inboxselect'], 'msg/_inboxselect', depth0, helpers, partials, data); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n "; | |
return buffer; | |
} | |
function program3(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\n "; | |
stack1 = self.invokePartial(partials['msg/_labelselect'], 'msg/_labelselect', depth0, helpers, partials, data); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n "; | |
return buffer; | |
} | |
buffer += "<div class=\"cal-header\">\n MESSAGE CENTER\n <div class=\"white-line\"></div><br>\n</div>\n\n<div class=\"spacer\"></div>\n<a href=\"#\" id=\"message_create\" class=\"invitesLink\">Create New Message</a>\n<div class=\"spacer\"></div>\n<div class=\"background-panel-cal\">\n <form id=\"form-back\">\n <input type=\"text\" placeholder=\"Search Message Center\" disabled />\n </form>\n</div>\n\n<div class=\"invitesLink\">Inboxes</div>\n\n<!-- This is the set of standard inboxes -->\n<div id=\"msgInterface_dashboard_inboxList\">\n "; | |
stack1 = helpers.each.call(depth0, depth0.inboxes, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n</div>\n\n\n<div class=\"invitesLink\"><br>Labels<br><br></div>\n\n<div class=\"background-panel-cal\">\n <form id=\"form-back\">\n <div class=\"row collapse\">\n <input type=\"text\" class=\"xxx\" placeholder=\"Create New Label\" />\n </div>\n </form>\n</div>\n\n\n<div id=\"msgInterface_dashboard_labelList\">\n "; | |
stack1 = helpers.each.call(depth0, depth0.labels, {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data}); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n</div>\n\n<div class=\"spacer\" style=\"height: 20px;\"></div>"; | |
return buffer; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* handlebars dashboard.hb -f output.js | |
*/ | |
(function() { | |
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; | |
templates['dashboard.hb'] = template(function (Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [4,'>= 1.0.0']; | |
helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {}; | |
var buffer = "", stack1, self=this; | |
function program1(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\n "; | |
stack1 = self.invokePartial(partials['msg/_inboxselect'], 'msg/_inboxselect', depth0, helpers, partials, data); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n "; | |
return buffer; | |
} | |
function program3(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\n "; | |
stack1 = self.invokePartial(partials['msg/_labelselect'], 'msg/_labelselect', depth0, helpers, partials, data); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n "; | |
return buffer; | |
} | |
buffer += "<div class=\"cal-header\">\n MESSAGE CENTER\n <div class=\"white-line\"></div><br>\n</div>\n\n<div class=\"spacer\"></div>\n<a href=\"#\" id=\"message_create\" class=\"invitesLink\">Create New Message</a>\n<div class=\"spacer\"></div>\n<div class=\"background-panel-cal\">\n <form id=\"form-back\">\n <input type=\"text\" placeholder=\"Search Message Center\" disabled />\n </form>\n</div>\n\n<div class=\"invitesLink\">Inboxes</div>\n\n<!-- This is the set of standard inboxes -->\n<div id=\"msgInterface_dashboard_inboxList\">\n "; | |
stack1 = helpers.each.call(depth0, depth0.inboxes, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n</div>\n\n\n<div class=\"invitesLink\"><br>Labels<br><br></div>\n\n<div class=\"background-panel-cal\">\n <form id=\"form-back\">\n <div class=\"row collapse\">\n <input type=\"text\" class=\"xxx\" placeholder=\"Create New Label\" />\n </div>\n </form>\n</div>\n\n\n<div id=\"msgInterface_dashboard_labelList\">\n "; | |
stack1 = helpers.each.call(depth0, depth0.labels, {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data}); | |
if(stack1 || stack1 === 0) { buffer += stack1; } | |
buffer += "\n</div>\n\n<div class=\"spacer\" style=\"height: 20px;\"></div>"; | |
return buffer; | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment