Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/dust-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,16 @@ var helpers = {
if (context.stack.index === 0) {
return bodies.block(chunk, context);
}
return chunk;

return bodies.else ? bodies.else(chunk, context) : chunk;
},

"last": function(chunk, context, bodies) {
if (context.stack.index === context.stack.of - 1) {
return bodies.block(chunk, context);
}
return chunk;

return bodies.else ? bodies.else(chunk, context) : chunk;
},

/**
Expand Down