public interface RenderEngine
| Modifier and Type | Method and Description |
|---|---|
void |
addMacro(Macro macro)
Add a macro to the render engine, this can be performed from a component or a webapp and will
be keyed on its name.
|
String |
getName()
Name of the RenderEngine.
|
String |
render(Reader in,
RenderContext context)
Render an input with text markup from a Reader and write the result to a
writer
|
String |
render(String content,
RenderContext context)
Render an input with text markup and return a String with e.g.
|
void |
render(Writer out,
String content,
RenderContext context)
Render an input with text markup and an write the result e.g.
|
String getName()
String render(String content, RenderContext context)
content - String with the input to rendercontext - Special context for the render engine, e.g. with configuration
informationvoid render(Writer out, String content, RenderContext context) throws IOException
out - Writer to write the output tocontent - String with the input to rendercontext - Special context for the render engine, e.g. with configuration
informationIOExceptionString render(Reader in, RenderContext context) throws IOException
in - Reader to read the input fromcontext - Special context for the render engine, e.g. with configuration
informationIOExceptionvoid addMacro(Macro macro)
macro - Copyright © 2003–2016 Sakai Project. All rights reserved.