package templates;
import java.util.*;
import java.io.*;
import cn.bran.japid.tags.Each;
import japidviews._layouts.*;
import japidviews._tags.*;
import static cn.bran.play.JapidPlayAdapter.*;
// NOTE: This file was generated from: templates/EachCall.html
// Change to this file will be lost next time the template file is compiled.
@cn.bran.play.NoEnhance
public class EachCall extends cn.bran.japid.template.JapidTemplateBase{
	public static final String sourceTemplate = "templates/EachCall.html";
static private final String static_0 = ""
;
static private final String static_1 = "\n" + 
"\n" + 
"the old bad way:\n" + 
"";
static private final String static_2 = "\n" + 
"	"
;
static private final String static_3 = "<p>"
;
static private final String static_4 = "</p>\n" + 
"";
static private final String static_5 = "\n" + 
"\n" + 
"the closure form:\n" + 
"";
static private final String static_6 = "\n" + 
"	<p>"
;
static private final String static_7 = " ) "
;
static private final String static_8 = "</p>\n" + 
"";
static private final String static_9 = "\n" + 
"";
	public EachCall() {
		super(null);
	}
	public EachCall(StringBuilder out) {
		super(out);
	}
	List<String> posts;
	public cn.bran.japid.template.RenderResult render(
List<String> posts
) {
		this.posts = posts;
		long t = -1;
		super.layout();
		return new cn.bran.japid.template.RenderResult(this.headers, getOut(), t);
	}
	@Override protected void doLayout() {
p(static_0);// line 1
p(static_1);// line 3
_Each0.setActionRunners(getActionRunners());
_Each0.render(posts, _Each0DoBody);
// line 6
p(static_5);// line 8
_Each1.setActionRunners(getActionRunners());
_Each1.render(posts, _Each1DoBody);
// line 11
p(static_9);// line 13

	}
	private Each _Each0 = new Each(getOut());
class Each0DoBody implements Each.DoBody< String>{
	public void render(String p, int _index, boolean _isOdd, String _parity, boolean _isFirst, boolean _isLast) {
		// line 6
p(static_2);// line 6
p(static_3);// line 7
p(p);// line 7
p(static_4);// line 7

	}
}
	private Each0DoBody _Each0DoBody = new Each0DoBody();

	private Each _Each1 = new Each(getOut());
class Each1DoBody implements Each.DoBody< String>{
	public void render(String p, int _index, boolean _isOdd, String _parity, boolean _isFirst, boolean _isLast) {
		// line 11
p(static_6);// line 11
p(_index);// line 12
p(static_7);// line 12
p(p);// line 12
p(static_8);// line 12

	}
}
	private Each1DoBody _Each1DoBody = new Each1DoBody();

}
