Class HandlebarsJs
java.lang.Object
ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
ro.isdc.wro.extensions.processor.support.handlebarsjs.HandlebarsJs
HandlebarsJS is a JavaScript templating engine which provides the power necessary to let you build semantic templates
effectively with no frustration.
- Author:
- heldeen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompiles the javascript template into plain javascript.protected Stringprotected InputStreamMethods inherited from class ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
getArguments
-
Constructor Details
-
HandlebarsJs
public HandlebarsJs()
-
-
Method Details
-
compile
Compiles the javascript template into plain javascript.- Overrides:
compilein classAbstractJsTemplateCompiler- Parameters:
content- the template to be compiled.name- any additional arguments used by template script.- Returns:
- the compiled javascript.
-
getCompileCommand
- Specified by:
getCompileCommandin classAbstractJsTemplateCompiler- Returns:
- the js statement used to execute the compilation of the template.
-
getCompilerAsStream
- Specified by:
getCompilerAsStreamin classAbstractJsTemplateCompiler- Returns:
- the stream of the compiler resource (javascript) used to compile templates.
- Throws:
IOException- if the stream could not be located.
-