Class HoganJs
java.lang.Object
ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
ro.isdc.wro.extensions.processor.support.hoganjs.HoganJs
Hogan.js: http://twitter.github.com/hogan.js/
- Since:
- 1.4.7
- Author:
- Eivind Barstad Waaler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompiles the javascript template into plain javascript.protected Stringprotected Stringprotected InputStream
-
Constructor Details
-
HoganJs
public HoganJs()
-
-
Method Details
-
compile
Compiles the javascript template into plain javascript.- Overrides:
compilein classAbstractJsTemplateCompiler- Parameters:
content- the template to be compiled.optionalArgument- any additional arguments used by template script.- Returns:
- the compiled javascript.
-
getCompilerAsStream
- Specified by:
getCompilerAsStreamin classAbstractJsTemplateCompiler- Returns:
- the stream of the compiler resource (javascript) used to compile templates.
-
getCompileCommand
- Specified by:
getCompileCommandin classAbstractJsTemplateCompiler- Returns:
- the js statement used to execute the compilation of the template.
-
getArguments
- Overrides:
getArgumentsin classAbstractJsTemplateCompiler- Returns:
- additional arguments for the compiler.
-