public class RhinoDustCompiler extends java.lang.Object implements DustCompiler
DustCompiler.| Constructor and Description |
|---|
RhinoDustCompiler(java.io.Reader dustJs) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
compile(java.lang.String templateName,
java.lang.String template) |
public RhinoDustCompiler(java.io.Reader dustJs)
throws javax.script.ScriptException
dustJs - reader that dust.js library would be read fromjavax.script.ScriptException - would be thrown if there is any problem with JavaScript codepublic java.lang.String compile(java.lang.String templateName,
java.lang.String template)
throws java.lang.Exception
compile in interface DustCompilertemplateName - dust.js template nametemplate - template source codejava.lang.Exception - for any failureCopyright © 2013. All Rights Reserved.