import { default } from "https://deno.land/x/lume@v2.4.1/core/site.ts";
This is the heart of Lume, it contains everything needed to build the site
Constructors
Properties
To load reusable components
To load all _data files
To listen and dispatch events
The static files to be copied are stored here
Info about how to handle different file formats
To read the files from the filesystem
Pages that should be rendered on demand
The generated pages are stored here
To store and run the pre-processors
To store and run the processors
To render the pages using any template engine
Components created with site.component()
Data assigned with site.data()
Pages created with site.page()
To update pages of the same scope after any change
To run scripts
To search pages
To scan the src folder
To write the generated pages in the dest folder
Methods
Add a listener to an event
Build the entire site
Clear the dest directory and any cache
Register an extra component accesible by the layouts
Copy static files or directories without processing
Copy the remaining files
Register extra data accessible by the layouts
Returns the full path to the dest directory. Use the arguments to return a subpath
Dispatch an event
Get the content of a file. Resolve the path if it's needed.
Returns a File system watcher of the site
Register a template helper
Ignore one or several files or directories
Register an assets loader for some extensions
Register a page loader for some extensions
Register a merging strategy for a data key
Register a basename parser
Register a preprocessor for some extensions
Register a processor for some extensions
Define a remote fallback for a missing local file
Render a single page (used for on demand rendering)
Returns the full path to the root directory. Use the arguments to return a subpath
Runs a script or function registered previously
Define independent scopes to optimize the update process
Register a script or a function, so it can be executed with lume run
Returns the full path to the src directory. Use the arguments to return a subpath
Reload some files that might be changed
Return the URL of a path