ro.isdc.wro.extensions.processor.js
Class HandlebarsJsProcessor
java.lang.Object
ro.isdc.wro.extensions.processor.js.JsTemplateCompilerProcessor
ro.isdc.wro.extensions.processor.js.HandlebarsJsProcessor
- All Implemented Interfaces:
- ResourcePreProcessor
@SupportedResourceType(value=JS)
public class HandlebarsJsProcessor
- extends JsTemplateCompilerProcessor
Compiles HandlebarsJS templates to javascript.
- Since:
- 1.4.7
- Author:
- heldeen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
HandlebarsJsProcessor
public HandlebarsJsProcessor()
createCompiler
protected AbstractJsTemplateCompiler createCompiler()
-
- Specified by:
createCompiler
in class JsTemplateCompilerProcessor
- Returns:
- the
AbstractJsTemplateCompiler
responsible for compiling the template.
getArgument
protected String getArgument(Resource resource)
-
- Overrides:
getArgument
in class JsTemplateCompilerProcessor
- Parameters:
resource
- Resource
being processed by compiler.
- Returns:
- arguments consumed by the js compile script.
Copyright © 2008-2013. All Rights Reserved.