Site updated at 2015-12-16 15:13:55 UTC
This commit is contained in:
parent
d484b0f113
commit
2d2a6e49e4
98 changed files with 462 additions and 132 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue