Last active
August 29, 2015 14:13
-
-
Save jonbretman/ab9f1e1305d004f65fc6 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
var tpl = function (_swig,_ctx,_filters,_utils,_fn) { | |
var _ext = _swig.extensions, | |
_output = ""; | |
(function () { | |
var __l = (((typeof _ctx.things !== "undefined" && _ctx.things !== null) ? ((typeof _ctx.things !== "undefined" && _ctx.things !== null) ? _ctx.things : "") : ((typeof things !== "undefined" && things !== null) ? things : "")) !== null ? ((typeof _ctx.things !== "undefined" && _ctx.things !== null) ? ((typeof _ctx.things !== "undefined" && _ctx.things !== null) ? _ctx.things : "") : ((typeof things !== "undefined" && things !== null) ? things : "")) : "" ), __len = (_utils.isArray(__l) || typeof __l === "string") ? __l.length : _utils.keys(__l).length; | |
if (!__l) { return; } | |
var _ctx__loopcache07607445325702429 = { loop: _ctx.loop, thing: _ctx.thing, __k: _ctx.__k }; | |
_ctx.loop = { first: false, index: 1, index0: 0, revindex: __len, revindex0: __len - 1, length: __len, last: false }; | |
_utils.each(__l, function (thing, __k) { | |
_ctx.thing = thing; | |
_ctx.__k = __k; | |
_ctx.loop.key = __k; | |
_ctx.loop.first = (_ctx.loop.index0 === 0); | |
_ctx.loop.last = (_ctx.loop.revindex0 === 0); | |
_output += "\n I have a "; | |
_output += _filters["e"]((((typeof _ctx.thing !== "undefined" && _ctx.thing !== null) ? ((typeof _ctx.thing !== "undefined" && _ctx.thing !== null) ? _ctx.thing : "") : ((typeof thing !== "undefined" && thing !== null) ? thing : "")) !== null ? ((typeof _ctx.thing !== "undefined" && _ctx.thing !== null) ? ((typeof _ctx.thing !== "undefined" && _ctx.thing !== null) ? _ctx.thing : "") : ((typeof thing !== "undefined" && thing !== null) ? thing : "")) : "" )); | |
_output += "\n"; | |
_ctx.loop.index += 1; _ctx.loop.index0 += 1; _ctx.loop.revindex -= 1; _ctx.loop.revindex0 -= 1; | |
}); | |
_ctx.loop = _ctx__loopcache07607445325702429.loop; | |
_ctx.thing = _ctx__loopcache07607445325702429.thing; | |
_ctx.__k = _ctx__loopcache07607445325702429.__k; | |
_ctx__loopcache07607445325702429 = undefined; | |
})(); | |
_output += "\n\n"; | |
return _output; | |
}; |
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(context){ | |
var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; | |
__p+=''; | |
_.each(context.things,function(thing){ | |
__p+=''; | |
var __$0 = context.thing;context.thing = thing; | |
__p+='I have a '+ | |
((__t=(thing))==null?'':_.escape(__t))+ | |
''; | |
context.thing = __$0; | |
__p+=''; | |
}); | |
__p+=''; | |
return __p; | |
} |
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
{% for thing in things %} | |
I have a {{ thing }} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment