public class HandlebarsEngineAdapter extends AbstractTemplatingEngineAdapter
| Constructor and Description |
|---|
HandlebarsEngineAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
compileTemplate(TemplatingExecutor executor,
Map<String,Object> bundle,
String templateFile) |
com.github.jknack.handlebars.io.TemplateSource |
findTemplate(TemplatingExecutor generator,
String templateFile) |
String[] |
getFileExtensions() |
String |
getIdentifier()
Provides an identifier used to load the adapter.
|
boolean |
handlesFile(String filename)
Determine if the adapter handles compilation of the file
|
HandlebarsEngineAdapter |
infiniteLoops(boolean infiniteLoops)
Enable/disable infiniteLoops setting for the Handlebars engine.
|
void |
setPrettyPrint(boolean prettyPrint) |
getModifiedFileLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittemplateExistspublic String getIdentifier()
public String compileTemplate(TemplatingExecutor executor, Map<String,Object> bundle, String templateFile) throws IOException
IOExceptionpublic com.github.jknack.handlebars.io.TemplateSource findTemplate(TemplatingExecutor generator, String templateFile)
public String[] getFileExtensions()
public boolean handlesFile(String filename)
filename - The template filenamepublic HandlebarsEngineAdapter infiniteLoops(boolean infiniteLoops)
infiniteLoops - Whether to enable (true) or disable (false)public void setPrettyPrint(boolean prettyPrint)
Copyright © 2021. All rights reserved.