diff --git a/content/docs/cli/server/contents.lr b/content/docs/cli/server/contents.lr index 6876a9b3..73d6f83c 100644 --- a/content/docs/cli/server/contents.lr +++ b/content/docs/cli/server/contents.lr @@ -12,11 +12,14 @@ body: The server command will launch a local server for development. -Lektor's developemnt server will automatically build all files into +Lektor's development server will automatically build all files into pages similar to how the build command with the `--watch` switch works, but also at the same time serve up the website on a local HTTP server. +Exporting the `LEKTOR_DEV=1` environment variable will also enable +[Jinja debug extension :ext](https://jinja.palletsprojects.com/en/3.0.x/extensions/#debug-extension). + ## Options - `-h, --host TEXT`: The network interface to bind to. The default is the @@ -29,4 +32,4 @@ HTTP server. - `-f, --build-flag TEXT`: Defines an arbitrary build flag. These can be used by plugins to customize the build process. More information can be found in the documentation of affected plugins. -- `--help`: print this help page. \ No newline at end of file +- `--help`: print this help page. diff --git a/content/docs/templates/contents.lr b/content/docs/templates/contents.lr index a2aaf675..ed7195cb 100644 --- a/content/docs/templates/contents.lr +++ b/content/docs/templates/contents.lr @@ -40,6 +40,10 @@ evaluated in but the following are always available: | `alt` | A string that identifies the [Alternative :ref](../content/alts/) of the page. | `config` | Gives access to the Lektor project configuration. +Additionally, exporting the `LEKTOR_DEV=1` environment variable when running [`lektor server` :ref](../cli/server/) + will also enable [Jinja debug extension :ext](https://jinja.palletsprojects.com/en/3.0.x/extensions/#debug-extension) +which may be useful in template development. + ## The First Template So let's dive in making our first template. In case you went through the