public class HandlebarsJs extends AbstractJsTemplateCompiler
| Modifier and Type | Field and Description |
|---|---|
static String |
HANDLEBARS_JS_TEMPLATES_INIT
visible for testing, the init of a HandlebarsJs template
|
| Constructor and Description |
|---|
HandlebarsJs() |
| Modifier and Type | Method and Description |
|---|---|
String |
compile(String content,
String name)
Compiles the javascript template into plain javascript.
|
protected String |
getCompileCommand() |
protected InputStream |
getCompilerAsStream() |
getArgumentspublic static final String HANDLEBARS_JS_TEMPLATES_INIT
public String compile(String content, String name)
AbstractJsTemplateCompilercompile in class AbstractJsTemplateCompilercontent - the template to be compiled.name - any additional arguments used by template script.protected String getCompileCommand()
getCompileCommand in class AbstractJsTemplateCompilerprotected InputStream getCompilerAsStream()
getCompilerAsStream in class AbstractJsTemplateCompilerCopyright © 2008-2013. All Rights Reserved.