|
@@ -16,14 +16,15 @@ import java.util.List;
|
|
|
* Auto generated code to render template views/Fortunes.rocker.html
|
|
|
* Do not edit this file. Changes will eventually be overwritten by Rocker parser!
|
|
|
*/
|
|
|
+@SuppressWarnings("unused")
|
|
|
public class Fortunes extends com.fizzed.rocker.runtime.DefaultRockerModel {
|
|
|
|
|
|
- static public final com.fizzed.rocker.ContentType CONTENT_TYPE = com.fizzed.rocker.ContentType.HTML;
|
|
|
- static public final String TEMPLATE_NAME = "Fortunes.rocker.html";
|
|
|
- static public final String TEMPLATE_PACKAGE_NAME = "views";
|
|
|
- static public final String HEADER_HASH = "331039920";
|
|
|
- static public final long MODIFIED_AT = 1506096936000L;
|
|
|
- static public final String[] ARGUMENT_NAMES = { "items" };
|
|
|
+ static public com.fizzed.rocker.ContentType getContentType() { return com.fizzed.rocker.ContentType.HTML; }
|
|
|
+ static public String getTemplateName() { return "Fortunes.rocker.html"; }
|
|
|
+ static public String getTemplatePackageName() { return "views"; }
|
|
|
+ static public String getHeaderHash() { return "331039920"; }
|
|
|
+ static public long getModifiedAt() { return 1558430324000L; }
|
|
|
+ static public String[] getArgumentNames() { return new String[] { "items" }; }
|
|
|
|
|
|
// argument @ [3:2]
|
|
|
private List<Fortune> items;
|
|
@@ -76,9 +77,9 @@ public class Fortunes extends com.fizzed.rocker.runtime.DefaultRockerModel {
|
|
|
public Template(Fortunes model) {
|
|
|
super(model);
|
|
|
__internal.setCharset("UTF-8");
|
|
|
- __internal.setContentType(CONTENT_TYPE);
|
|
|
- __internal.setTemplateName(TEMPLATE_NAME);
|
|
|
- __internal.setTemplatePackageName(TEMPLATE_PACKAGE_NAME);
|
|
|
+ __internal.setContentType(getContentType());
|
|
|
+ __internal.setTemplateName(getTemplateName());
|
|
|
+ __internal.setTemplatePackageName(getTemplatePackageName());
|
|
|
this.items = model.items();
|
|
|
}
|
|
|
|
|
@@ -90,37 +91,34 @@ public class Fortunes extends com.fizzed.rocker.runtime.DefaultRockerModel {
|
|
|
// ForBlockBegin @ [4:107]
|
|
|
__internal.aboutToExecutePosInTemplate(4, 107);
|
|
|
try {
|
|
|
- final com.fizzed.rocker.runtime.CollectionForIterator<Fortune> __forIterator0 = new com.fizzed.rocker.runtime.CollectionForIterator<Fortune>(items);
|
|
|
- while (__forIterator0.hasNext()) {
|
|
|
- final com.fizzed.rocker.ForIterator i = __forIterator0;
|
|
|
- final Fortune item = __forIterator0.next();
|
|
|
+ com.fizzed.rocker.runtime.Java8Iterator.forEach(items, (i,item) -> {
|
|
|
try {
|
|
|
- // PlainText @ [4:153]
|
|
|
- __internal.aboutToExecutePosInTemplate(4, 153);
|
|
|
+ // PlainText @ [4:133]
|
|
|
+ __internal.aboutToExecutePosInTemplate(4, 133);
|
|
|
__internal.writeValue(PLAIN_TEXT_1_0);
|
|
|
- // ValueExpression @ [4:161]
|
|
|
- __internal.aboutToExecutePosInTemplate(4, 161);
|
|
|
+ // ValueExpression @ [4:141]
|
|
|
+ __internal.aboutToExecutePosInTemplate(4, 141);
|
|
|
__internal.renderValue(item.id, false);
|
|
|
- // PlainText @ [4:169]
|
|
|
- __internal.aboutToExecutePosInTemplate(4, 169);
|
|
|
+ // PlainText @ [4:149]
|
|
|
+ __internal.aboutToExecutePosInTemplate(4, 149);
|
|
|
__internal.writeValue(PLAIN_TEXT_2_0);
|
|
|
- // ValueExpression @ [4:178]
|
|
|
- __internal.aboutToExecutePosInTemplate(4, 178);
|
|
|
+ // ValueExpression @ [4:158]
|
|
|
+ __internal.aboutToExecutePosInTemplate(4, 158);
|
|
|
__internal.renderValue(item.message, false);
|
|
|
- // PlainText @ [4:191]
|
|
|
- __internal.aboutToExecutePosInTemplate(4, 191);
|
|
|
+ // PlainText @ [4:171]
|
|
|
+ __internal.aboutToExecutePosInTemplate(4, 171);
|
|
|
__internal.writeValue(PLAIN_TEXT_3_0);
|
|
|
// ForBlockEnd @ [4:107]
|
|
|
__internal.aboutToExecutePosInTemplate(4, 107);
|
|
|
} catch (com.fizzed.rocker.runtime.ContinueException e) {
|
|
|
// support for continuing for loops
|
|
|
}
|
|
|
- } // for end @ [4:107]
|
|
|
+ }); // for end @ [4:107]
|
|
|
} catch (com.fizzed.rocker.runtime.BreakException e) {
|
|
|
// support for breaking for loops
|
|
|
}
|
|
|
- // PlainText @ [4:202]
|
|
|
- __internal.aboutToExecutePosInTemplate(4, 202);
|
|
|
+ // PlainText @ [4:182]
|
|
|
+ __internal.aboutToExecutePosInTemplate(4, 182);
|
|
|
__internal.writeValue(PLAIN_TEXT_4_0);
|
|
|
}
|
|
|
}
|