import { default } from "https://deno.land/x/lume@v1.18.5/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
Global components shared by all templates
To output messages to the console
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
Data assigned with site.data()
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.
Register a template helper
Ignore one or several files or directories
Register an import path for some extensions
Register an assets loader for some extensions
Register a component loader for some extensions
Register a page loader for some extensions
Register a preprocessor for some extensions
Register a multipreprocessor for some extensions
Register a processor for some extensions
Register a multiprocessor 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