This class holds all the relevant information for building a Lektor Project. It can be reused between builds and only holds state that is immutable after initialization. For instance it will hold all loaded plugins, the configuration for the Jinja 2 template engine and more.
Plugins have access to the environment at any point by accessing
from lektor.project import Project project = Project.discover() env = project.make_env()
Registers a build program for a source object.
Registers a publisher class with the environment.
Adds a new field type to the environment.
Registers a custom generator function.
The configured Jinja 2 Environment.
Loads the current config from the project file.
Loads the available plugins for the environment.
Creates a brand new database pad.
Renders a template from the template folder.
Registers a custom URL resolver function.
Registers a virtual path resolver with the environment.