org.nanoko.coffee.mill.processors
Class DustJSProcessor

java.lang.Object
  extended by org.nanoko.coffee.mill.processors.DefaultProcessor
      extended by org.nanoko.coffee.mill.processors.DustJSProcessor
All Implemented Interfaces:
Processor

public class DustJSProcessor
extends DefaultProcessor

Compiles dust templates. Dust templates are in the javascript directory using the .dust extension. Notice it used the LinkedIn fork of dust.js, more info here.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nanoko.coffee.mill.processors.Processor
Processor.ProcessorException, Processor.ProcessorWarning
 
Field Summary
static String DUST_SCRIPT
           
 
Fields inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
mojo, options
 
Constructor Summary
DustJSProcessor()
           
 
Method Summary
 boolean accept(File file)
           
 void configure(AbstractCoffeeMillMojo mojo, Map<String,Object> options)
           
 void fileCreated(File file)
           
 void fileDeleted(File file)
           
 void fileUpdated(File file)
           
 InputStream getScriptAsStream()
           
 void processAll()
           
 
Methods inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
computeRelativeFile, copyFileToDir, getLog, isFileContainedInDirectory, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUST_SCRIPT

public static final String DUST_SCRIPT
See Also:
Constant Field Values
Constructor Detail

DustJSProcessor

public DustJSProcessor()
Method Detail

configure

public void configure(AbstractCoffeeMillMojo mojo,
                      Map<String,Object> options)
Specified by:
configure in interface Processor
Overrides:
configure in class DefaultProcessor

processAll

public void processAll()
                throws Processor.ProcessorException
Specified by:
processAll in interface Processor
Overrides:
processAll in class DefaultProcessor
Throws:
Processor.ProcessorException

accept

public boolean accept(File file)
Specified by:
accept in interface Processor
Overrides:
accept in class DefaultProcessor

fileCreated

public void fileCreated(File file)
                 throws Processor.ProcessorException
Specified by:
fileCreated in interface Processor
Overrides:
fileCreated in class DefaultProcessor
Throws:
Processor.ProcessorException

fileUpdated

public void fileUpdated(File file)
                 throws Processor.ProcessorException
Specified by:
fileUpdated in interface Processor
Overrides:
fileUpdated in class DefaultProcessor
Throws:
Processor.ProcessorException

fileDeleted

public void fileDeleted(File file)
Specified by:
fileDeleted in interface Processor
Overrides:
fileDeleted in class DefaultProcessor

getScriptAsStream

public InputStream getScriptAsStream()


Copyright © 2012-2013 OW2. All Rights Reserved.