Module

x/lume/core/source.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class default
import { default } from "https://dotland.deno.dev/x/lume@v2.1.4/core/source.ts";

Scan and load files from the source folder with the data, pages, assets and static files

Constructors

new
default(options: Options)

Properties

componentLoader: ComponentLoader

To load all components

components: { cssFile: string; jsFile: string; variable: string; }
optional
copyRemainingFiles: (path: string) => string | boolean

List of static files and folders to copy

data: Map<string, Partial<Data>>

The data assigned per path

dataLoader: DataLoader

To load all _data files

extraCode: Map<string, Map<string, string>>

Extra code generated by the components

filters: ScopeFilter[]

The path filters to ignore

formats: Formats

Info about how to handle different file formats

fs: FS

Filesystem reader to scan folders

ignored: Set<string>

The list of paths to ignore

prettyUrls: boolean

Use pretty URLs

scopedComponents: Map<string, Components>

The components assigned per path

scopedData: Map<string, RawData>

The data assigned per path

scopedPages: Map<string, RawData[]>

The pages assigned per path

staticPaths: Map<string, { dest: string | ((path: string) => string) | undefined; dirOnly: boolean; }>

List of static files and folders to copy

Methods

addIgnoredPath(path: string)
addStaticPath(from: string, to?: string | ((path: string) => string))
build(...buildFilters: BuildFilter[]): Promise<[Page[], StaticFile[]]>

Returns the pages with extra code generated by the components