ro.isdc.wro.extensions.processor.js
Class JsTemplateCompilerProcessor
java.lang.Object
ro.isdc.wro.extensions.processor.js.JsTemplateCompilerProcessor
- All Implemented Interfaces:
- ResourcePreProcessor
- Direct Known Subclasses:
- DustJsProcessor, EmberJsProcessor, HandlebarsJsProcessor, HoganJsProcessor
public abstract class JsTemplateCompilerProcessor
- extends Object
- implements ResourcePreProcessor
A base class for template processors like: dustJS or hoganJS.
- 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 |
JsTemplateCompilerProcessor
public JsTemplateCompilerProcessor()
process
public void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
-
- Specified by:
process in interface ResourcePreProcessor
- Throws:
IOException
getArgument
protected String getArgument(Resource resource)
- Parameters:
resource - Resource being processed by compiler.
- Returns:
- arguments consumed by the js compile script.
createCompiler
protected abstract AbstractJsTemplateCompiler createCompiler()
- Returns:
- the
AbstractJsTemplateCompiler responsible for compiling the template.
Copyright © 2008-2013. All Rights Reserved.