All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.micronaut.starter.feature.view.gradlePluginRocker Maven / Gradle / Ivy

There is a newer version: 4.7.0
Show newest version
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/gradlePluginRocker.rocker.raw
 * Do not edit this file. Changes will eventually be overwritten by Rocker parser!
 */
@SuppressWarnings("unused")
public class gradlePluginRocker extends com.fizzed.rocker.runtime.DefaultRockerModel {

    static public com.fizzed.rocker.ContentType getContentType() { return com.fizzed.rocker.ContentType.RAW; }
    static public String getTemplateName() { return "gradlePluginRocker.rocker.raw"; }
    static public String getTemplatePackageName() { return "io.micronaut.starter.feature.view"; }
    static public String getHeaderHash() { return "-2091456326"; }
    static public String[] getArgumentNames() { return new String[] { "path" }; }

    // argument @ [1:2]
    private String path;

    public gradlePluginRocker path(String path) {
        this.path = path;
        return this;
    }

    public String path() {
        return this.path;
    }

    static public gradlePluginRocker template(String path) {
        return new gradlePluginRocker()
            .path(path);
    }

    @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 {

        // rocker {\n    configurations {\n        create(\"main\") {\n            templateDir = file(\"
        static private final String PLAIN_TEXT_0_0 = "rocker {\n    configurations {\n        create(\"main\") {\n            templateDir = file(\"";
        // \")\n            outputDir = file(\"src/generated/rocker\")\n        }\n    }\n}\n
        static private final String PLAIN_TEXT_1_0 = "\")\n            outputDir = file(\"src/generated/rocker\")\n        }\n    }\n}\n";

        // argument @ [1:2]
        protected final String path;

        public Template(gradlePluginRocker model) {
            super(model);
            __internal.setCharset("UTF-8");
            __internal.setContentType(getContentType());
            __internal.setTemplateName(getTemplateName());
            __internal.setTemplatePackageName(getTemplatePackageName());
            this.path = model.path();
        }

        @Override
        protected void __doRender() throws IOException, RenderingException {
            // PlainText @ [1:19]
            __internal.aboutToExecutePosInTemplate(1, 19);
            __internal.writeValue(PLAIN_TEXT_0_0);
            // ValueExpression @ [6:33]
            __internal.aboutToExecutePosInTemplate(6, 33);
            __internal.renderValue(path, false);
            // PlainText @ [6:38]
            __internal.aboutToExecutePosInTemplate(6, 38);
            __internal.writeValue(PLAIN_TEXT_1_0);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy