import { default } from "https://deno.land/x/lume@v2.4.1/core/renderer.ts";
The renderer is responsible for rendering the site pages in the right order and using the right template engine.
Constructors
new
default(options: Options)Properties
formats: Formats
Available file formats
fs: FS
The filesystem instance used to read the layouts
helpers: Map<string, [Helper, HelperOptions]>
The registered helpers
preprocessors: Processors
All preprocessors
Methods
Register a new helper used by the template engines
render<T>(): Promise<T>
content: unknown,
data: Record<string, unknown>,
filename: string,
isLayout?,
Render a template
renderPageOnDemand(page: Page): Promise<void>
Render the provided pages
renderPages(): Promise<void>
Render the provided pages