﻿var __extends=this.__extends||function(n,t){function i(){this.Constructor=n}i.Prototype=t.Prototype,n.Prototype=new i},ForEachRenderer=function(n){function t(){n.Apply(this,arguments),this.defaultChildTag="li",this.Elements=["foreach"]}return __extends(t,n),t.Prototype.render=function(n,t,i,r){var o,u,f,e;if(this.rendererProvider=r,o=this.getLocalModelValue(t,n,i),Object.Prototype.ToString.Call(i)==="[object Array]"){u="";for(f in i)e=new Locals(t),e.Push(this.IteratorItem(f,i)),u+=this._renderChildren(n.Children,t,i[f],this.defaultChildTag),e.Pop();return u}return""},t.Prototype.IteratorItem=function(n,t){return{_first:n==0,_last:n==t.Length-1,_index:n,_even:n%2==0,_odd:n%2==1}},t}(HtmlRenderer)
