aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2019-04-07 12:48:27 +0200
committerMarvin Borner2019-04-07 12:48:27 +0200
commit05f73150bc060dc9dc52e34da6323a38c433e118 (patch)
treed455007d76bce6cd92fd51d53691ef3bb6a4ab1d
parentd60bf9b546bca3e479668de801e8821e19abbb9e (diff)
Removed generated views from git tracking
-rw-r--r--.gitignore1
-rw-r--r--src/main/resources/generated-views/files.java142
-rw-r--r--src/main/resources/generated-views/fileview.java122
3 files changed, 1 insertions, 264 deletions
diff --git a/.gitignore b/.gitignore
index e3c5775..65676d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,4 @@ files/
.idea
*.db
src/main/resources/compiled-views/rocker-compiler.conf
+src/main/resources/generated-views/
diff --git a/src/main/resources/generated-views/files.java b/src/main/resources/generated-views/files.java
deleted file mode 100644
index 443d91a..0000000
--- a/src/main/resources/generated-views/files.java
+++ /dev/null
@@ -1,142 +0,0 @@
-import com.fizzed.rocker.RenderingException;
-import com.fizzed.rocker.runtime.DefaultRockerTemplate;
-import com.fizzed.rocker.runtime.PlainTextUnloadedClassLoader;
-
-import java.io.IOException;
-import java.util.ArrayList;
-
-// import @ [1:1]
-
-/*
- * Auto generated code to render template /files.rocker.html
- * Do not edit this file. Changes will eventually be overwritten by Rocker parser!
- */
-@SuppressWarnings("unused")
-public class files extends com.fizzed.rocker.runtime.DefaultRockerModel {
-
- static public com.fizzed.rocker.ContentType getContentType() {
- return com.fizzed.rocker.ContentType.HTML;
- }
-
- static public String getTemplateName() {
- return "files.rocker.html";
- }
-
- static public String getTemplatePackageName() {
- return "";
- }
-
- static public String getHeaderHash() {
- return "-1618097059";
- }
-
- static public long getModifiedAt() {
- return 1554633755940L;
- }
-
- static public String[] getArgumentNames() {
- return new String[]{"files"};
- }
-
- // argument @ [2:2]
- private ArrayList files;
-
- public files files(ArrayList files) {
- this.files = files;
- return this;
- }
-
- public ArrayList files() {
- return this.files;
- }
-
- static public files template(ArrayList files) {
- return new files()
- .files(files);
- }
-
- @Override
- protected DefaultRockerTemplate buildTemplate() throws RenderingException {
- // optimized for convenience (runtime auto reloading enabled if rocker.reloading=true)
- return com.fizzed.rocker.runtime.RockerRuntime.getInstance().getBootstrap().template(this.getClass(), this);
- }
-
- static public class Template extends com.fizzed.rocker.runtime.DefaultRockerTemplate {
-
- // <a href=\"
- static private final byte[] PLAIN_TEXT_0_0;
- // \">
- static private final byte[] PLAIN_TEXT_1_0;
- // </a><br>\n
- static private final byte[] PLAIN_TEXT_2_0;
-
- static {
- PlainTextUnloadedClassLoader loader = PlainTextUnloadedClassLoader.tryLoad(files.class.getClassLoader(), files.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");
- PLAIN_TEXT_2_0 = loader.tryGet("PLAIN_TEXT_2_0");
- }
-
- // argument @ [2:2]
- protected final ArrayList files;
-
- public Template(files model) {
- super(model);
- __internal.setCharset("UTF-8");
- __internal.setContentType(getContentType());
- __internal.setTemplateName(getTemplateName());
- __internal.setTemplatePackageName(getTemplatePackageName());
- this.files = model.files();
- }
-
- @Override
- protected void __doRender() throws IOException, RenderingException {
- // ValueClosureBegin @ [3:1]
- __internal.aboutToExecutePosInTemplate(3, 1);
- __internal.renderValue(layout.template(files.size() + " Files").__body(() -> {
- // ForBlockBegin @ [4:1]
- __internal.aboutToExecutePosInTemplate(4, 1);
- try {
- final com.fizzed.rocker.runtime.IterableForIterator<String> __forIterator0 = new com.fizzed.rocker.runtime.IterableForIterator<String>(files);
- while (__forIterator0.hasNext()) {
- final String file = __forIterator0.next();
- try {
- // PlainText @ [4:29]
- __internal.aboutToExecutePosInTemplate(4, 29);
- __internal.writeValue(PLAIN_TEXT_0_0);
- // ValueExpression @ [5:10]
- __internal.aboutToExecutePosInTemplate(5, 10);
- __internal.renderValue(file, false);
- // PlainText @ [5:15]
- __internal.aboutToExecutePosInTemplate(5, 15);
- __internal.writeValue(PLAIN_TEXT_1_0);
- // ValueExpression @ [5:17]
- __internal.aboutToExecutePosInTemplate(5, 17);
- __internal.renderValue(file, false);
- // PlainText @ [5:22]
- __internal.aboutToExecutePosInTemplate(5, 22);
- __internal.writeValue(PLAIN_TEXT_2_0);
- // ForBlockEnd @ [4:1]
- __internal.aboutToExecutePosInTemplate(4, 1);
- } catch (com.fizzed.rocker.runtime.ContinueException e) {
- // support for continuing for loops
- }
- } // for end @ [4:1]
- } catch (com.fizzed.rocker.runtime.BreakException e) {
- // support for breaking for loops
- }
- // ValueClosureEnd @ [3:1]
- __internal.aboutToExecutePosInTemplate(3, 1);
- }), false); // value closure end @ [3:1]
- }
- }
-
- private static class PlainText {
-
- static private final String PLAIN_TEXT_0_0 = "<a href=\"";
- static private final String PLAIN_TEXT_1_0 = "\">";
- static private final String PLAIN_TEXT_2_0 = "</a><br>\n";
-
- }
-
-}
diff --git a/src/main/resources/generated-views/fileview.java b/src/main/resources/generated-views/fileview.java
deleted file mode 100644
index 7400da2..0000000
--- a/src/main/resources/generated-views/fileview.java
+++ /dev/null
@@ -1,122 +0,0 @@
-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 filename;
-
- 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 "-79956506";
- }
-
- static public long getModifiedAt() {
- return 1554633681210L;
- }
-
- // argument @ [1:2]
- private String content;
-
- static public String[] getArgumentNames() {
- return new String[]{"content", "filename"};
- }
-
- public fileview content(String content) {
- this.content = content;
- return this;
- }
-
- public String content() {
- return this.content;
- }
-
- static public fileview template(String content, String filename) {
- return new fileview()
- .content(content)
- .filename(filename);
- }
-
- public fileview filename(String filename) {
- this.filename = filename;
- return this;
- }
-
- public String filename() {
- return this.filename;
- }
-
- @Override
- protected DefaultRockerTemplate buildTemplate() throws RenderingException {
- // optimized for convenience (runtime auto reloading enabled if rocker.reloading=true)
- return com.fizzed.rocker.runtime.RockerRuntime.getInstance().getBootstrap().template(this.getClass(), this);
- }
-
- static public class Template extends com.fizzed.rocker.runtime.DefaultRockerTemplate {
-
- // \n
- static private final byte[] PLAIN_TEXT_0_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");
- }
-
- // argument @ [1:2]
- protected final String content;
- // argument @ [1:2]
- protected final String filename;
-
- public Template(fileview model) {
- super(model);
- __internal.setCharset("UTF-8");
- __internal.setContentType(getContentType());
- __internal.setTemplateName(getTemplateName());
- __internal.setTemplatePackageName(getTemplatePackageName());
- this.content = model.content();
- this.filename = model.filename();
- }
-
- @Override
- protected void __doRender() throws IOException, RenderingException {
- // ValueClosureBegin @ [3:1]
- __internal.aboutToExecutePosInTemplate(3, 1);
- __internal.renderValue(layout.template("File " + filename).__body(() -> {
- // ValueExpression @ [4:1]
- __internal.aboutToExecutePosInTemplate(4, 1);
- __internal.renderValue(content, false);
- // PlainText @ [4:9]
- __internal.aboutToExecutePosInTemplate(4, 9);
- __internal.writeValue(PLAIN_TEXT_0_0);
- // ValueClosureEnd @ [3:1]
- __internal.aboutToExecutePosInTemplate(3, 1);
- }), false); // value closure end @ [3:1]
- }
- }
-
- private static class PlainText {
-
- static private final String PLAIN_TEXT_0_0 = "\n";
-
- }
-
-}