Skip to content
Snippets Groups Projects
Commit c8d861d8 authored by René Schöne's avatar René Schöne
Browse files

prepare to use YAML instead of plain ragconnect object for mustache

parent 904e2a74
No related branches found
No related tags found
1 merge request!33Resolve "Refactorings/Clean-Up"
Pipeline #14557 passed
...@@ -364,6 +364,8 @@ public class Compiler extends AbstractCompiler { ...@@ -364,6 +364,8 @@ public class Compiler extends AbstractCompiler {
com.github.mustachejava.DefaultMustacheFactory mf = new com.github.mustachejava.DefaultMustacheFactory(); com.github.mustachejava.DefaultMustacheFactory mf = new com.github.mustachejava.DefaultMustacheFactory();
mf.setObjectHandler(roh); mf.setObjectHandler(roh);
com.github.mustachejava.Mustache m = mf.compile("ragconnect.mustache"); com.github.mustachejava.Mustache m = mf.compile("ragconnect.mustache");
// String yaml = ragConnect.toYAML().prettyPrint();
// Object context = new org.yaml.snakeyaml.Yaml().load(new StringReader(yaml));
m.execute(new java.io.PrintWriter(new org.jastadd.ragconnect.compiler.AppendableWriter(sb)), ragConnect); m.execute(new java.io.PrintWriter(new org.jastadd.ragconnect.compiler.AppendableWriter(sb)), ragConnect);
return sb.toString(); return sb.toString();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment