gg.jte.generated.precompiled.JtetestGenerated Maven / Gradle / Ivy
package gg.jte.generated.precompiled;
import java.net.URL;
import java.time.LocalDateTime;
public final class JtetestGenerated {
public static final String JTE_NAME = "test.jte";
public static final int[] JTE_LINE_INFO = {0,0,1,3,3,3,18,18,18,18,19,19,19,20,20,20,21,21,21,22,22,22,23,23,23,26,26,26,3,4,5,6,7,8,8,8,8};
public static void render(gg.jte.html.HtmlTemplateOutput jteOutput, gg.jte.html.HtmlInterceptor jteHtmlInterceptor, String key1, String key2, String a, LocalDateTime localDate, URL _template_, LocalDateTime _now_) {
jteOutput.writeContent("\n\n\n\n\n Fortunes \n\n\n This is a test template
\n ");
jteOutput.setContext("p", null);
jteOutput.writeUserContent(key1 == null? "key1" : key1);
jteOutput.writeContent("
\n ");
jteOutput.setContext("p", null);
jteOutput.writeUserContent(key2 == null? "key2" : key2);
jteOutput.writeContent("
\n ");
jteOutput.setContext("p", null);
jteOutput.writeUserContent(a == null? "a" : a);
jteOutput.writeContent("
\n ");
jteOutput.setContext("p", null);
jteOutput.writeUserContent(localDate == null? "localDate" : localDate.toString());
jteOutput.writeContent("
\n ");
jteOutput.setContext("p", null);
jteOutput.writeUserContent(_template_ == null? "_template_" : _template_.toString());
jteOutput.writeContent("
\n ");
jteOutput.setContext("p", null);
jteOutput.writeUserContent(_now_ == null? "_now_" : _now_.toString());
jteOutput.writeContent("
\n\n\n");
}
public static void renderMap(gg.jte.html.HtmlTemplateOutput jteOutput, gg.jte.html.HtmlInterceptor jteHtmlInterceptor, java.util.Map params) {
String key1 = (String)params.get("key1");
String key2 = (String)params.get("key2");
String a = (String)params.get("a");
LocalDateTime localDate = (LocalDateTime)params.get("localDate");
URL _template_ = (URL)params.get("_template_");
LocalDateTime _now_ = (LocalDateTime)params.get("_now_");
render(jteOutput, jteHtmlInterceptor, key1, key2, a, localDate, _template_, _now_);
}
}