Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.14.1/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

setStaticFile(file: StaticFile)

Add a static file to this directory

unsetPage(name: string)

Remove a page from this directory