import { default } from "https://deno.land/x/lume@v1.13.0/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
dataLoader: DataLoader
To load all _data files
filters: ScopeFilter[]
The path filters to ignore
formats: Formats
Info about how to handle different file formats
pageLoader: PageLoader
To load all pages
pagePreparer: PagePreparer
To prepare the pages
reader: Reader
Filesystem reader to scan folders
root: Directory
The root of the src directory
Methods
addIgnoredPath(path: string)
addIgnoreFilter(filter: ScopeFilter)
addStaticPath(from: string, to?: string | ((path: string) => string))
Returns the pages with extra code generated by the components
getContent(): [Page[], StaticFile[]]
Return the site content
load()
Load all sources
update(file: string, onDemand?): Promise<void>
Update a file