if(context.forloop && !context.forloop.counter0){ this.shared.counter = -1; } ++this.shared.counter; var value = this.cyclevars[this.shared.counter % this.cyclevars.length]; var map = this.shared.map; if(!map[value]){ map[value] = new dd._Filter(value); } value = map[value].resolve(context, buffer); if(this.name){ context[this.name] = value; } if(!this.contents){ this.contents = new this.TextNode(""); } this.contents.set(value); return this.contents.render(context, buffer);