ro.isdc.wro.extensions.processor.support.hoganjs
Class HoganJs

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
      extended by 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

Constructor Summary
HoganJs()
           
 
Method Summary
 String compile(String content, String optionalArgument)
          Compiles the javascript template into plain javascript.
protected  String getArguments()
          
protected  String getCompileCommand()
          
protected  InputStream getCompilerAsStream()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HoganJs

public HoganJs()
Method Detail

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.