io.micronaut.starter.feature.view.exampleJTE Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micronaut-starter-core Show documentation
Show all versions of micronaut-starter-core Show documentation
Generates Micronaut applications
package io.micronaut.starter.feature.view;
import java.io.IOException;
import com.fizzed.rocker.ForIterator;
import com.fizzed.rocker.RenderingException;
import com.fizzed.rocker.RockerContent;
import com.fizzed.rocker.RockerOutput;
import com.fizzed.rocker.runtime.DefaultRockerTemplate;
import com.fizzed.rocker.runtime.PlainTextUnloadedClassLoader;
/*
* Auto generated code to render template io/micronaut/starter/feature/view/exampleJTE.rocker.raw
* Do not edit this file. Changes will eventually be overwritten by Rocker parser!
*/
@SuppressWarnings("unused")
public class exampleJTE extends com.fizzed.rocker.runtime.DefaultRockerModel {
static public com.fizzed.rocker.ContentType getContentType() { return com.fizzed.rocker.ContentType.RAW; }
static public String getTemplateName() { return "exampleJTE.rocker.raw"; }
static public String getTemplatePackageName() { return "io.micronaut.starter.feature.view"; }
static public String getHeaderHash() { return "2508083"; }
static public String[] getArgumentNames() { return new String[] { }; }
static public exampleJTE template() {
return new exampleJTE();
}
@Override
protected DefaultRockerTemplate buildTemplate() throws RenderingException {
// optimized for performance (via rocker.optimize flag; no auto reloading)
return new Template(this);
}
static public class Template extends com.fizzed.rocker.runtime.DefaultRockerTemplate {
// @param String message\n@param boolean showTime\n\n\n \n JTE Example \n \n \n Hello, ${message}!
\n @if(showTime)\n It is ${System.currentTimeMillis()}
\n @endif\n \n
static private final String PLAIN_TEXT_0_0 = "@param String message\n@param boolean showTime\n\n\n \n JTE Example \n \n \n Hello, ${message}!
\n @if(showTime)\n It is ${System.currentTimeMillis()}
\n @endif\n \n";
public Template(exampleJTE model) {
super(model);
__internal.setCharset("UTF-8");
__internal.setContentType(getContentType());
__internal.setTemplateName(getTemplateName());
__internal.setTemplatePackageName(getTemplatePackageName());
}
@Override
protected void __doRender() throws IOException, RenderingException {
// PlainText @ [1:1]
__internal.aboutToExecutePosInTemplate(1, 1);
__internal.writeValue(PLAIN_TEXT_0_0);
}
}
}