[jinja_debug] Add reference to jinja_debug

This commit is contained in:
Joseph Nix 2022-01-11 15:26:03 -06:00
parent 092b7d379b
commit f4ab175038
2 changed files with 9 additions and 2 deletions

View File

@ -12,11 +12,14 @@ body:
The server command will launch a local server for development. 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 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 works, but also at the same time serve up the website on a local
HTTP server. 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 ## Options
- `-h, --host TEXT`: The network interface to bind to. The default is the - `-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 - `-f, --build-flag TEXT`: Defines an arbitrary build flag. These can be
used by plugins to customize the build process. More information can be used by plugins to customize the build process. More information can be
found in the documentation of affected plugins. found in the documentation of affected plugins.
- `--help`: print this help page. - `--help`: print this help page.

View File

@ -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. | `alt` | A string that identifies the [Alternative :ref](../content/alts/) of the page.
| `config` | Gives access to the Lektor project configuration. | `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 ## The First Template
So let's dive in making our first template. In case you went through the So let's dive in making our first template. In case you went through the