ro.isdc.wro.extensions.processor.support.emberjs
Class EmberJs

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
      extended by ro.isdc.wro.extensions.processor.support.emberjs.EmberJs

public class EmberJs
extends AbstractJsTemplateCompiler

EmberJS is a framework which provide a templating engine built on top of Handlebars.

Author:
blemoine

Constructor Summary
EmberJs()
           
 
Method Summary
 String compile(String content, String name)
          visible for testing, the init of a HandlebarsJs template
protected  String getCompileCommand()
           
protected  InputStream getCompilerAsStream()
           
 
Methods inherited from class ro.isdc.wro.extensions.processor.support.template.AbstractJsTemplateCompiler
getArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmberJs

public EmberJs()
Method Detail

compile

public String compile(String content,
                      String name)
visible for testing, the init of a HandlebarsJs template

Overrides:
compile in class AbstractJsTemplateCompiler
Parameters:
content - the template to be compiled.
name - any additional arguments used by template script.
Returns:
the compiled javascript.

getCompileCommand

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

getCompilerAsStream

protected InputStream getCompilerAsStream()
Specified by:
getCompilerAsStream in class AbstractJsTemplateCompiler
Returns:
the stream of the compiler resource (javascript) used to compile templates.


Copyright © 2008-2013. All Rights Reserved.