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

x/lume/core.ts>Writer

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

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

Constructors

new
Writer(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

removeFiles(files: string[])
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