Package ganymede.kernel.magic
Class Mustache
- java.lang.Object
-
- ganymede.notebook.AbstractMagic
-
- ganymede.notebook.AbstractScriptEngineMagic
-
- ganymede.kernel.magic.Mustache
-
- All Implemented Interfaces:
AnnotatedMagic
,AnnotatedScriptEngineMagic
,Magic
- Direct Known Subclasses:
Markdown
@ServiceProviderFor(Magic.class) @MagicNames({"mustache","handlebars"}) @Description("Mustache template evaluator") public class Mustache extends AbstractScriptEngineMagic
- Author:
- Allen D. Ball
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ganymede.notebook.Magic
Magic.Application, Magic.completeness
-
-
Field Summary
-
Fields inherited from class ganymede.notebook.AbstractScriptEngineMagic
engine
-
Fields inherited from class ganymede.notebook.AbstractMagic
context, HELPER
-
-
Constructor Summary
Constructors Constructor Description Mustache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
render(Object object)
Callback to render the results ofScriptEngine.eval(String,ScriptContext)
.-
Methods inherited from class ganymede.notebook.AbstractScriptEngineMagic
engine, execute, execute, execute, getInitScript, initialize, show
-
Methods inherited from class ganymede.notebook.AbstractMagic
configure, getUsage, isComplete, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ganymede.notebook.AnnotatedMagic
getDescription, getMagicNames, getUsage
-
Methods inherited from interface ganymede.notebook.AnnotatedScriptEngineMagic
getExtensions, getScriptEngineName
-
Methods inherited from interface ganymede.notebook.Magic
configure, instance, isComplete
-
-
-
-
Constructor Detail
-
Mustache
public Mustache()
-
-
Method Detail
-
render
protected void render(Object object)
Description copied from class:AbstractScriptEngineMagic
Callback to render the results ofScriptEngine.eval(String,ScriptContext)
. Made available for template engines. Default implementation does nothing.- Overrides:
render
in classAbstractScriptEngineMagic
- Parameters:
object
- The result ofScriptEngine.eval(String,ScriptContext)
.
-
-