Package-level declarations

Types

Link copied to clipboard
class CssFontFacesImporter(families: List<FontFamily>, mediaStorage: ReadOnlyMediaStorage)

Generator of @font-face and @import CSS rules for a list of FontFamily, to be used in HTML post-rendering. It supports system, local, and remote media sources.

Link copied to clipboard
class HtmlOnlyPostRenderer(context: Context, baseTemplateProcessor: () -> TemplateProcessor = baseHtmlTemplateProcessor, name: String = "index", relativePathToRoot: String) : PostRenderer

A subset of HtmlPostRenderer that generates only the HTML output resources without any additional resources.

Link copied to clipboard
class HtmlPostRenderer(val context: Context, relativePathToRoot: String = ".", baseTemplateProcessor: () -> TemplateProcessor = baseHtmlTemplateProcessor, base: HtmlOnlyPostRenderer = HtmlOnlyPostRenderer(context, baseTemplateProcessor, relativePathToRoot = relativePathToRoot), resourcesProvider: () -> Set<PostRendererResource> = { setOf( ThemePostRendererResource( theme = context.documentInfo.theme.orDefault(DEFAULT_THEME), locale = context.documentInfo.locale, ), ScriptPostRendererResource(), MediaPostRendererResource(context.mediaStorage), ) }) : PostRenderer

A PostRenderer that injects content into an HTML template. This includes all the features of HtmlOnlyPostRenderer, plus:

Link copied to clipboard

Supplier of a TemplateProcessor that injects content and properties into an HTML template.

Link copied to clipboard

A PostRenderer for subdocuments, which generates a group (directory) containing a index.html resource, and a media directory if needed, and redirects scripts, themes, and other resources to the root's (HtmlPostRenderer) resources.

Properties

Link copied to clipboard

Supplier of the base TemplateProcessor for HTML post-rendering.