public abstract class AbstractRenderer extends Object
Constructor and Description |
---|
AbstractRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyResources(File path,
String resource,
String destinationName)
Copy static resources
|
protected com.hubspot.jinjava.Jinjava |
getJinjava() |
abstract String |
render(Map<String,Object> context)
Render a report
|
protected String |
render(String name,
Map<String,Object> context)
Render a report
|
protected void |
setupResourceLocator() |
protected com.hubspot.jinjava.Jinjava getJinjava()
protected void setupResourceLocator()
protected String render(String name, Map<String,Object> context) throws Exception
name
- The resource name to be parsedcontext
- the Jinja context containing the variables to be usedException
- If unable to parse the templateprotected void copyResources(File path, String resource, String destinationName) throws IOException
path
- the path to copy toresource
- the resource namedestinationName
- the destination nameIOException
- on multiple I/O related errorsThis documentation was released into the public domain.