Site updated at 2017-08-26 17:30:22 UTC

This commit is contained in:
Travis CI 2017-08-26 17:30:22 +00:00
parent 919bae8956
commit 45060d18c1
1403 changed files with 8957 additions and 7954 deletions

View file

@ -10,11 +10,11 @@
<meta name="author" content="Home Assistant">
<meta name="description" content="home-assistant.io web presence">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/developers/website/">
<link rel="canonical" href="/developers/website/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Website home-assistant.io">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/developers/website/">
<meta property="og:url" content="/developers/website/">
<meta property="og:type" content="website">
<meta property="og:description" content="home-assistant.io web presence">
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
@ -134,19 +134,27 @@ Content...Written in markdown.
<div class="language-text highlighter-rouge"><pre class="highlight"><code> ```yaml
sensor:
platform: template
```
</code></pre>
</div>
<p>Note that you can replace <code class="highlighter-rouge">yaml</code> next to ``` with the language that is within the block.</p>
<p>When youre writing code that is to be executed on the terminal, prefix it with <code class="highlighter-rouge">$</code>.</p>
<h3><a class="title-link" name="templates" href="#templates"></a> Templates</h3>
<p>For the <a href="/topics/templating/">configuration templating</a> is <a href="http://jinja.pocoo.org/">Jinja</a> used.</p>
<p>If you are using templates then those parts needs to be <a href="http://stackoverflow.com/a/24102537">escaped</a>. Otherwise they will be rendered and appear blank on the website.</p>
<h3><a class="title-link" name="html" href="#html"></a> HTML</h3>
<p>The direct usage of HTML is supported but not recommended. The note boxes are an exception.</p>
<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">'note warning'</span><span class="nt">&gt;</span>
<div class="highlighter-rouge"><pre class="highlight"><code>
Note that you can replace `yaml` next to \`\`\` with the language that is within the block.
When you're writing code that is to be executed on the terminal, prefix it with `$`.
### &lt;a class='title-link' name='templates' href='#templates'&gt;&lt;/a&gt; Templates
For the [configuration templating](/topics/templating/) is [Jinja](http://jinja.pocoo.org/) used.
If you are using templates then those parts needs to be [escaped](http://stackoverflow.com/a/24102537). Otherwise they will be rendered and appear blank on the website.
### &lt;a class='title-link' name='html' href='#html'&gt;&lt;/a&gt; HTML
The direct usage of HTML is supported but not recommended. The note boxes are an exception.
```html
&lt;p class='note warning'&gt;
You need to enable telnet on your router.
<span class="nt">&lt;/p&gt;</span>
&lt;/p&gt;
</code></pre>
</div>
<h3><a class="title-link" name="redirects" href="#redirects"></a> Redirects</h3>