in src/js/modules/belt.js [336:366]
function(match, code, y, z, close, invert, name) {
if (!depth) {
output += code.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,
function(match, raw, comment, isRaw, partial, name) {
return raw ? get(ctx, raw)
: isRaw ? get(ctx, name)
: partial ? render(get(ctx, name), ctx)
: !comment ? new Option(get(ctx, name)).innerHTML
: ""
}
)
inverted = invert
} else {
childCode += depth && !close || depth > 1 ? match : code
}
if (close) {
if (!--depth) {
name = get(ctx, name)
if (/^f/.test(typeof name)) {
output += name.call(ctx, childCode, function (template) {
return render(template, ctx)
})
} else {
output += render(childCode, name, ctx, inverted)
}
childCode = ""
}
} else {
++depth
}
}