ro.isdc.wro.extensions.processor.support.dustjs
Class DustJs

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
      extended by ro.isdc.wro.extensions.processor.support.dustjs.DustJs

public class DustJs
extends AbstractJsTemplateCompiler

Dust is a JavaScript templating engine designed to provide a clean separation between presentation and logic without sacrificing ease of use. It is particularly well-suited for asynchronous and streaming applications.

Since:
1.4.5
Author:
Eivind Barstad Waaler

Constructor Summary
DustJs()
           
 
Method Summary
protected  String getCompileCommand()
          
protected  InputStream getCompilerAsStream()
          
protected  InputStream getDefaultCompilerStream()
           
 
Methods inherited from class ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
compile, getArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DustJs

public DustJs()
Method Detail

getCompilerAsStream

protected InputStream getCompilerAsStream()
                                   throws IOException

Specified by:
getCompilerAsStream in class AbstractJsTemplateCompiler
Returns:
the stream of the compiler resource (javascript) used to compile templates.
Throws:
IOException - if the stream could not be located.

getDefaultCompilerStream

protected InputStream getDefaultCompilerStream()
Returns:
default stream of the compiler.

getCompileCommand

protected String getCompileCommand()

Specified by:
getCompileCommand in class AbstractJsTemplateCompiler
Returns:
the js statement used to execute the compilation of the template.


Copyright © 2008-2013. All Rights Reserved.