Skip to main content
Module

x/lume/core.ts>PagePreparer

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class PagePreparer
Re-export
import { PagePreparer } from "https://deno.land/x/lume@v1.13.1/core.ts";

Class to prepare pages before rendering, completing the missing data

Constructors

new
PagePreparer(options: Options)

Properties

prettyUrls: boolean
src: string

Methods

getData(entry: Page | Directory, parentData: 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