Skip to main content
Module

x/lume/core.ts>Page

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

A page of the site

Constructors

new
Page(src?: Partial<Src>)

Properties

_data: Record<string, unknown>

The property _data is to store internal data, used by plugins, processors, etc to save arbitrary values

content: Content | undefined

The content of this page

data: PageData

Used to save the page data

deprecated
readonly
dest: Dest
document: HTMLDocument | undefined

The parsed HTML code from the content

readonly
outputPath: string | undefined

Returns the output path of this page

src: Src

The src info

Methods

duplicate(index?: number, data?: Data): Page

Duplicate this page.

deprecated
updateDest(dest: Partial<Dest>): void

Update the destination file. It also update the data.url accordingly

Static Methods

create(url: string, content: Content): Page

Convenient way to create a page dynamically with a url and content