Class VanEngine
java.lang.Object
dev.vanengine.core.VanEngine
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VanEngine.Builderbuilder()Compile a .van file and evaluate with model data in one step.compileLiteral(String templateContent, Map<String, ?> model) Compile an inline template and evaluate with model data in one step.getLiteralTemplate(String templateContent) Compile an inline template string and return a reusable template.getTemplate(String templatePath) Compile a .van file from the filesystem and return a reusable template.getTemplate(String entryPath, Map<String, String> files) Compile from an explicit files map (for classpath resources) and return a reusable template.voidsetBasePath(Path basePath)
-
Constructor Details
-
VanEngine
-
-
Method Details
-
setBasePath
-
builder
-
getTemplate
Compile a .van file from the filesystem and return a reusable template.- Throws:
IOException
-
getTemplate
Compile from an explicit files map (for classpath resources) and return a reusable template.- Throws:
IOException
-
getLiteralTemplate
Compile an inline template string and return a reusable template.- Throws:
IOException
-
compile
Compile a .van file and evaluate with model data in one step.- Throws:
IOException
-
compileLiteral
Compile an inline template and evaluate with model data in one step.- Throws:
IOException
-