Skip to content

Instantly share code, notes, and snippets.

@alangpierce
Created September 10, 2019 01:29
Show Gist options
  • Save alangpierce/d01c3d47e6d2c2cfc5a215c13857b0be to your computer and use it in GitHub Desktop.
Save alangpierce/d01c3d47e6d2c2cfc5a215c13857b0be to your computer and use it in GitHub Desktop.
function template(locals) {
var buf = [];
var jade_mixins = {};
var jade_interp;
;var locals_for_with = (locals || {});(function (color, name) {
buf.push("<td class=\"mono\">" + (jade.escape(null == (jade_interp = name) ? "" : jade_interp)) + "</td><td>");
if ( color)
{
buf.push("<div" + (jade.attr("style", 'background-color:' + color, true, false)) + " class=\"swatch\"></div>");
}
else
{
buf.push("<div class=\"swatch\"></div>");
}
buf.push("</td>");}.call(this,"color" in locals_for_with?locals_for_with.color:typeof color!=="undefined"?color:undefined,"name" in locals_for_with?locals_for_with.name:typeof name!=="undefined"?name:undefined));;return buf.join("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment