Site updated at 2015-12-16 15:13:55 UTC

This commit is contained in:
Paulus Schoutsen 2015-12-16 07:13:55 -08:00
parent d484b0f113
commit 2d2a6e49e4
98 changed files with 462 additions and 132 deletions

View file

@ -107,9 +107,15 @@
<hr class="divider">
<p>The template helper enables one to mathematically manipulate values and use variables to extract values from JSON.</p>
<p>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 <code>value_template</code> key can be set in the <code>configuration.yaml</code> file.</p>
<p>For a complete overview, check the <a href="http://jinja.pocoo.org/docs/dev/templates/">Jinja2 Template documentation</a>.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">value_template</span>: <span class="string"><span class="content">'{{ value.x }}'</span></span>
</pre></div>
</div>
</div>
<p>For a complete overview, check the <a href="http://jinja.pocoo.org/docs/dev/templates/">Jinja2 documentation</a>.</p>
<h3><a class="title-link" name="accessing-variables" href="#accessing-variables"></a> Accessing variables</h3>