From 390db9229b2aaa0a6ca7a920e4901b581ba917e2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 3 Apr 2019 22:39:03 +0200 Subject: Added fileview --- src/main/resources/compiled-views/fileview.java | 103 ++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 src/main/resources/compiled-views/fileview.java (limited to 'src/main/resources/compiled-views/fileview.java') diff --git a/src/main/resources/compiled-views/fileview.java b/src/main/resources/compiled-views/fileview.java new file mode 100644 index 0000000..d17eae2 --- /dev/null +++ b/src/main/resources/compiled-views/fileview.java @@ -0,0 +1,103 @@ +import com.fizzed.rocker.RenderingException; +import com.fizzed.rocker.runtime.DefaultRockerTemplate; +import com.fizzed.rocker.runtime.PlainTextUnloadedClassLoader; + +import java.io.IOException; + +/* + * Auto generated code to render template /fileview.rocker.html + * Do not edit this file. Changes will eventually be overwritten by Rocker parser! + */ +@SuppressWarnings("unused") +public class fileview extends com.fizzed.rocker.runtime.DefaultRockerModel { + + // argument @ [1:2] + private String content; + + static public com.fizzed.rocker.ContentType getContentType() { + return com.fizzed.rocker.ContentType.HTML; + } + + static public String getTemplateName() { + return "fileview.rocker.html"; + } + + static public String getTemplatePackageName() { + return ""; + } + + static public String getHeaderHash() { + return "868254209"; + } + + static public String[] getArgumentNames() { + return new String[]{"content"}; + } + + static public fileview template(String content) { + return new fileview() + .content(content); + } + + public fileview content(String content) { + this.content = content; + return this; + } + + public String content() { + return this.content; + } + + @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 { + + // \n\n\n \n \n \n Fileview\n\n\n\n\n\n + static private final byte[] PLAIN_TEXT_1_0; + + static { + PlainTextUnloadedClassLoader loader = PlainTextUnloadedClassLoader.tryLoad(fileview.class.getClassLoader(), fileview.class.getName() + "$PlainText", "UTF-8"); + PLAIN_TEXT_0_0 = loader.tryGet("PLAIN_TEXT_0_0"); + PLAIN_TEXT_1_0 = loader.tryGet("PLAIN_TEXT_1_0"); + } + + // argument @ [1:2] + protected final String content; + + public Template(fileview model) { + super(model); + __internal.setCharset("UTF-8"); + __internal.setContentType(getContentType()); + __internal.setTemplateName(getTemplateName()); + __internal.setTemplatePackageName(getTemplatePackageName()); + this.content = model.content(); + } + + @Override + protected void __doRender() throws IOException, RenderingException { + // PlainText @ [1:23] + __internal.aboutToExecutePosInTemplate(1, 23); + __internal.writeValue(PLAIN_TEXT_0_0); + // ValueExpression @ [14:5] + __internal.aboutToExecutePosInTemplate(14, 5); + __internal.renderValue(content, false); + // PlainText @ [14:13] + __internal.aboutToExecutePosInTemplate(14, 13); + __internal.writeValue(PLAIN_TEXT_1_0); + } + } + + private static class PlainText { + + static private final String PLAIN_TEXT_0_0 = "\n\n\n \n \n \n Fileview\n\n\n\n\n\n"; + + } + +} -- cgit v1.2.3