Skip to main content
Module

x/lume/core/filesystem.ts>Directory

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

A directory in the src folder

Properties

components: Components
dirs: Map<string, Directory>
pages: Map<string, Page>
staticFiles: Set<StaticFile>

Methods

createDirectory(slug: string): Directory

Create a subdirectory and return it

setPage(name: string, page: Page)

Add a page to this directory

Add a static file to this directory

unsetPage(name: string)

Remove a page from this directory