PostRenderer

interface PostRenderer

Strategy used to run the post-rendering stage: the rendered content from the rendering stage is injected into a template offered by the post-renderer. Additionally, the post-renderer provides the output resources that can be saved to file.

Inheritors

Properties

Link copied to clipboard

Rules that determine the default behavior of the media storage. For example, HTML requires local media to be accessible from the file system, hence it's preferred to copy local media to the output directory; it's not necessary to store remote media locally. On the other hand, for example, LaTeX rendering (not yet supported) would require all media to be stored locally, as it does not support remote media.

Functions

Link copied to clipboard
abstract fun <T> accept(visitor: PostRendererVisitor<T>): T

Accepts a post-renderer visitor.

Link copied to clipboard

Creates a new instance of a template processor for this rendering strategy. A template adds static content to the output code, and supports injection of values via placeholder keys, like a template file. For example, an HTML wrapper may add <html><head>...</head><body>...</body></html>, with the content injected in body. See resources/render/html-wrapper.html.template for an HTML template.

Link copied to clipboard

Generates the required output resources. Resources are abstractions of files that are generated during the rendering process and that can be saved on disk.

Link copied to clipboard

Wraps rendered code in a template.