Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No template engine found for template #1

Open
vondeetzen opened this issue Nov 14, 2014 · 1 comment
Open

No template engine found for template #1

vondeetzen opened this issue Nov 14, 2014 · 1 comment

Comments

@vondeetzen
Copy link

After running mvn jbake:generate the generated html files are empty (0 bytes)
The output tells me that no template engine was found.

[ERROR] Warning - No template engine found for template: post.ftl
[INFO] Rendering [/home/adeetzen/Development/jbake-sample/target/ingenieux-docs/about.html]... done!

If I go directly to src/main/jbake and run jbake everything is fine. Output folder is created and the site gets generated.

Maybe I'm missing something?

@JaimeChavarriaga
Copy link

The JBake maven plugin requires some dependencies. The "jbake" pom.xml defines as optional the libraries for pegdown (the markdown parser), asciidoctorj (the ad parser), freemaker (the .ftl renderer), groovy (the groovy renderer) and thymeleaf (the thyme renderer).

You can configure these dependencies in the maven pom.xml:

    <build>
        :
        <plugins>
            :
            <!-- webite generation using blake -->
            <plugin>
                <groupId>br.com.ingenieux</groupId>
                <artifactId>jbake-maven-plugin</artifactId>
                <version>0.0.9</version>

                <!-- dependencies -->
                <dependencies>

                    <!-- optional : a jbake version -->
                    <dependency>
                        <groupId>org.jbake</groupId>
                        <artifactId>jbake-core</artifactId>
                        <version>2.3.2</version>
                    </dependency>
                    <!-- for freemarker templates (.ftl) -->
                    <dependency>
                        <groupId>org.freemarker</groupId>
                        <artifactId>freemarker</artifactId>
                        <version>2.3.20</version>
                    </dependency>
                    <!-- for markdown parsing (.md) -->
                    <dependency>
                        <groupId>org.pegdown</groupId>
                        <artifactId>pegdown</artifactId>
                        <version>1.4.2</version>
                    </dependency>

                </dependencies>
            </plugin>
            :
        <plugins>
        :
    <build>

pdudits added a commit to pdudits/jbake-sample that referenced this issue Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants