From 159bc21e6b69f4f54a07262e984d7caf9a21eac9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 15 Dec 2015 08:22:25 +0100 Subject: [PATCH] Update the intro --- source/getting-started/templating.markdown | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/getting-started/templating.markdown b/source/getting-started/templating.markdown index cf3e236c60f..d35a5402e53 100644 --- a/source/getting-started/templating.markdown +++ b/source/getting-started/templating.markdown @@ -9,9 +9,13 @@ sharing: true footer: true --- -The template helper enables one to mathematically manipulate values and use variables to extract values from JSON. +The template helper enables one to mathematically manipulate values and use variables to extract values from JSON. If the entity has template support then the `value_template` key can be set in the `configuration.yaml` file. -For a complete overview, check the [Jinja2 Template documentation](http://jinja.pocoo.org/docs/dev/templates/). +```yaml +value_template: '{% raw %}{{ value.x }}{% endraw %}' +``` + +For a complete overview, check the [Jinja2 documentation](http://jinja.pocoo.org/docs/dev/templates/). ### {% linkable_title Accessing variables %}