Skip to content

Instantly share code, notes, and snippets.

@rgrove
Created August 25, 2012 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgrove/3459993 to your computer and use it in GitHub Desktop.
Save rgrove/3459993 to your computer and use it in GitHub Desktop.
function (Handlebars,depth0,helpers,partials,data) {
helpers = helpers || Handlebars.helpers;
var buffer = "", stack1, foundHelper, functionType="function", escapeExpression=this.escapeExpression, self=this, blockHelperMissing=helpers.blockHelperMissing;
function program1(depth0,data) {
var buffer = "", stack1, foundHelper;
buffer += "\n <li>";
foundHelper = helpers.item;
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
else { stack1 = depth0.item; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
buffer += escapeExpression(stack1) + "</li>\n ";
return buffer;}
buffer += "<ul class=\"";
stack1 = depth0.classNames;
stack1 = stack1 == null || stack1 === false ? stack1 : stack1.list;
stack1 = typeof stack1 === functionType ? stack1() : stack1;
buffer += escapeExpression(stack1) + "\">\n ";
foundHelper = helpers.items;
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{},inverse:self.noop,fn:self.program(1, program1, data)}); }
else { stack1 = depth0.items; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
if (!helpers.items) { stack1 = blockHelperMissing.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(1, program1, data)}); }
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "\n</ul>";
return buffer;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment