From 0edd6985ec2820e6ffcf891910784afab631eaa3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 3 Jan 2014 21:23:08 -0500 Subject: [PATCH] templates.js added support for !@first and !@last conditionals --- public/src/templates.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/src/templates.js b/public/src/templates.js index 0c90900d9c..c451d982bf 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -349,7 +349,9 @@ if (blockInfo) { checkConditional('@first', blockInfo.iterator === 0); + checkConditional('!@first', blockInfo.iterator !== 0); checkConditional('@last', blockInfo.iterator === blockInfo.total); + checkConditional('!@last', blockInfo.iterator !== blockInfo.total); } template = replace(namespace + d, data[d], template);