Skip to main content
Module

x/lume/core/page_preparer.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class default
import { default } from "https://deno.land/x/lume@v1.15.2/core/page_preparer.ts";

Class to prepare pages before rendering, completing the missing data

Constructors

new
default(options: Options)

Properties

prettyUrls: boolean
src: string

Methods

getData(
entry: Page | Directory,
parentData: Data,
globalData?: Map<string, Data>,
): PageData

Return the data associated with a page or folder

getDate(page: Page): Date

Returns the date assigned to a page

getUrl(page: Page, parentPath: string): string | false

Returns the final URL assigned to a page