Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/filesystem.ts>Page

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

A page of the site

Properties

content: Content | undefined

The content of this page

document: HTMLDocument | undefined

The parsed HTML code from the content

Methods

duplicate(index: number | string, data?): Page

Duplicate this page. Optionally, you can provide new data

updateDest(dest: Partial<Dest>, prettyUrl?: boolean | "no-html-extension"): 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