Created
September 10, 2019 01:29
-
-
Save alangpierce/d01c3d47e6d2c2cfc5a215c13857b0be to your computer and use it in GitHub Desktop.
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
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