import { default } from "https://deno.land/x/lume@v1.18.5/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
List of static files and folders to copy
data: Map<string, Data>
The data assigned per path
dataLoader: DataLoader
To load all _data files
filters: ScopeFilter[]
The path filters to ignore
formats: Formats
Info about how to handle different file formats
fs: FS
Filesystem reader to scan folders
scopedData: Map<string, Data>
Methods
addIgnoredPath(path: string)
addIgnoreFilter(filter: ScopeFilter)
addStaticPath(from: string, to?: string | ((path: string) => string))
build(globalComponents: Components, buildFilters: BuildFilter[]): Promise<[Page[], StaticFile[]]>
Returns the pages with extra code generated by the components