@@ -0,0 +1,1034 @@
+package com.wizzardo.http.framework.template.taglib.g;%0A%0Aimport com.wizzardo.http.framework.template.Body;%0Aimport com.wizzardo.http.framework.template.ExpressionHolder;%0Aimport com.wizzardo.http.framework.template.RenderResult;%0Aimport com.wizzardo.http.framework.template.Tag;%0A%0Aimport java.util.Collection;%0Aimport java.util.Map;%0A%0A/**%0A * Created by wizzardo on 12.05.15.%0A */%0Apublic class Collect extends Tag %7B%0A%0A    public Collect(Map%3CString, String%3E attrs, Body body, String offset) %7B%0A        super(attrs, body, offset);%0A%0A        ExpressionHolder%3CCollection%3E in = new ExpressionHolder%3C%3E(attrs.get(%22in%22));%0A        ExpressionHolder expr = new ExpressionHolder%3C%3E(attrs.get(%22expr%22));%0A%0A        add(model -%3E %7B%0A            Collection src = in.getRaw(model);%0A            RenderResult result = new RenderResult();%0A            for (Object ob : src) %7B%0A                model.put(%22it%22, ob);%0A                model.put(%22it%22, expr.getRaw(model));%0A                result.add(body.get(model));%0A            %7D%0A            return result;%0A        %7D);%0A    %7D%0A%7D%0A

add Collect tag