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

x/lume/core/writer.ts>default

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

Class to write the generated pages and static files in the dest folder.

Constructors

new
default(options: Options)

Properties

dest: string
logger: Logger
src: string

Methods

Empty the dest folder

copyFile(file: StaticFile): Promise<boolean>

Copy a static file in the dest folder Returns a boolean indicating if the file has saved

copyFiles(files: StaticFile[]): Promise<StaticFile[]>

Copy the static files in the dest folder

savePage(page: Page): Promise<boolean>

Save a page in the dest folder Returns a boolean indicating if the page has saved

savePages(pages: Page[]): Promise<Page[]>

Save the pages in the dest folder Returns an array of pages that have been saved