From 5a6d930a45db8d06d77954f019f0427bc37b6039 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Sun, 28 Aug 2022 10:03:16 +0200 Subject: [PATCH] docs: update Jinja2 docs URL to v3.1.x --- docs/configuring.md | 10 +++++----- docs/creating.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/configuring.md b/docs/configuring.md index b74e694d7..9e4cca1d2 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -519,7 +519,7 @@ possible. The only exception at the moment is that end of a template file. If you want to remove those, either remove them from the template or set `keep_trailing_newline` to `false`. -See [upstream docs](https://jinja.palletsprojects.com/en/2.11.x/api/#jinja2.Environment) +See [upstream docs](https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment) to know available options. !!! warning @@ -679,12 +679,12 @@ on them, so they are always installed when Copier is installed. Examples of extensions you can use: - - [Native Jinja2 extensions](https://jinja.palletsprojects.com/en/3.0.x/extensions/): - - [expression statement](https://jinja.palletsprojects.com/en/3.0.x/templates/#expression-statement), + - [Native Jinja2 extensions](https://jinja.palletsprojects.com/en/3.1.x/extensions/): + - [expression statement](https://jinja.palletsprojects.com/en/3.1.x/templates/#expression-statement), which can be used to alter the Jinja context (answers, filters, etc.) or execute other operations, without outputting anything. - - [loop controls](https://jinja.palletsprojects.com/en/3.0.x/extensions/#loop-controls), which adds the `break` and `continue` + - [loop controls](https://jinja.palletsprojects.com/en/3.1.x/extensions/#loop-controls), which adds the `break` and `continue` keywords for Jinja loops. - - [debug extension](https://jinja.palletsprojects.com/en/3.0.x/extensions/#debug-extension), which can dump the current context + - [debug extension](https://jinja.palletsprojects.com/en/3.1.x/extensions/#debug-extension), which can dump the current context thanks to the added `{% debug %}` tag. - From [cookiecutter](https://cookiecutter.readthedocs.io/en/1.7.2/): diff --git a/docs/creating.md b/docs/creating.md index 7a523cdf4..d4373b175 100644 --- a/docs/creating.md +++ b/docs/creating.md @@ -74,7 +74,7 @@ their usage. ## Template helpers In addition to -[all the features Jinja supports](https://jinja.palletsprojects.com/en/2.11.x/templates/), +[all the features Jinja supports](https://jinja.palletsprojects.com/en/3.1.x/templates/), Copier includes: - All functions and filters from