Skip to content
Snippets Groups Projects
Commit b4fe30b6 authored by Johannes Mey's avatar Johannes Mey
Browse files

allow partial recursion in mustache

parent 0661c85c
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ public class Mustache { ...@@ -39,6 +39,7 @@ public class Mustache {
Handlebars handlebars = new Handlebars(loader); Handlebars handlebars = new Handlebars(loader);
handlebars.prettyPrint(true); // set handlebars to mustache mode (skip some whitespace) handlebars.prettyPrint(true); // set handlebars to mustache mode (skip some whitespace)
handlebars.infiniteLoops(true); // allow partial recursion
Template template = handlebars.compile(templateFileName); Template template = handlebars.compile(templateFileName);
try (Writer w = new FileWriter(outputFileName)) { try (Writer w = new FileWriter(outputFileName)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment