Skip to main content
Latest
class Page
extends Base
import { Page } from "https://deno.land/x/lume_cleancss@v0.2.1/deps.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