ro.isdc.wro.extensions.processor.support.hoganjs
Class HoganJs
java.lang.Object
ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
ro.isdc.wro.extensions.processor.support.hoganjs.HoganJs
public class HoganJs
- extends AbstractJsTemplateCompiler
Hogan.js: http://twitter.github.com/hogan.js/
- Since:
- 1.4.7
- Author:
- Eivind Barstad Waaler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HoganJs
public HoganJs()
compile
public String compile(String content,
String optionalArgument)
- Compiles the javascript template into plain javascript.
- Overrides:
compile
in class AbstractJsTemplateCompiler
- Parameters:
content
- the template to be compiled.optionalArgument
- any additional arguments used by template script.
- Returns:
- the compiled javascript.
getCompilerAsStream
protected InputStream getCompilerAsStream()
-
- Specified by:
getCompilerAsStream
in class AbstractJsTemplateCompiler
- Returns:
- the stream of the compiler resource (javascript) used to compile templates.
getCompileCommand
protected String getCompileCommand()
-
- Specified by:
getCompileCommand
in class AbstractJsTemplateCompiler
- Returns:
- the js statement used to execute the compilation of the template.
getArguments
protected String getArguments()
-
- Overrides:
getArguments
in class AbstractJsTemplateCompiler
- Returns:
- additional arguments for the compiler.
Copyright © 2008-2013. All Rights Reserved.