templates.js added support for !@first and !@last conditionals

v1.18.x
psychobunny 11 years ago
parent 98a646fa62
commit 0edd6985ec

@ -349,7 +349,9 @@
if (blockInfo) { if (blockInfo) {
checkConditional('@first', blockInfo.iterator === 0); checkConditional('@first', blockInfo.iterator === 0);
checkConditional('!@first', blockInfo.iterator !== 0);
checkConditional('@last', blockInfo.iterator === blockInfo.total); checkConditional('@last', blockInfo.iterator === blockInfo.total);
checkConditional('!@last', blockInfo.iterator !== blockInfo.total);
} }
template = replace(namespace + d, data[d], template); template = replace(namespace + d, data[d], template);

Loading…
Cancel
Save