From 745bebf60175a00170b666c0eadaf1e3eb6e45df Mon Sep 17 00:00:00 2001 From: David Poll Date: Wed, 1 Mar 2023 07:10:41 -0800 Subject: [PATCH] Add a section on enabled jinja extensions (#26397) --- source/_docs/configuration/templating.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index d3622b4d365..a6264397712 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -57,6 +57,14 @@ There are a few very important rules to remember when adding templates to YAML: Remembering these simple rules will help save you from many headaches and endless hours of frustration when using automation templates. +### Enabled Jinja Extensions + +Jinja supports a set of language extensions that add new functionality to the language. +To improve the experience of writing Jinja templates, we have enabled the following +extensions: + +* [Loop Controls](https://jinja.palletsprojects.com/en/3.0.x/extensions/#loop-controls) (`break` and `continue`) + ## Home Assistant template extensions Extensions allow templates to access all of the Home Assistant specific states and adds other convenience functions and filters.