Skip to content

Commit

Permalink
Small docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Mar 7, 2016
1 parent 4b78af2 commit 14bcc41
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
22 changes: 16 additions & 6 deletions docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,21 @@ <h1><code>data-multiple</code></h1>
<li><code>&lt;tr></code> without any other <code>&lt;tr></code>s adjacent to it</li>
</ul>

<p>For example, this could be the markup for a basic to-do list, saved locally:</p>
<script type="text/plain">
<ul data-store="#todo">
<li></li>
</ul>
</script>
<section class="example">
<p>For example, this could be the markup for a basic to-do list, saved locally:</p>
<script type="text/plain">
<ul data-store="#todo">
<li property="task">
<input type="checkbox" property="done" />
<span property="title">Sample task</span>
</li>
</ul>
</script>

<p>Note that the <code>&lt;li></code> element is automatically turned into a collection, even though we did not specify a <code>data-multiple</code> attribute.</p>
</section>


</article>
<article>
<h1><code>typeof</code> or <code>itemscope</code> or <code>itemtype</code></h1>
Expand Down Expand Up @@ -205,6 +214,7 @@ <h1>Advanced expressions: <code>${code}</code></h1>
<li>Any property that can be used in simple expressions (including ancestor and child properties) can be used as a variable.</li>
<li>Multiplied elements (a.k.a. collections) are arrays. Scopes are plain objects.</li>
<li>Properties inside collections can also be accessed as a simple variable, whose value will be an array with all values of that property accross the collection.</li>
<li>There are several convenient functions for aggregate calculations on these properties that have multiple values, such as: <code>sum()</code>, <code>min()</code>, <code>max()</code>, <code>average()</code>.</li>
</ul>

<section class="example">
Expand Down
3 changes: 2 additions & 1 deletion website/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pre, code, .example script[type='application/json'] {
tab-size: 4;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none; }
hyphens: none;
white-space: pre; }

/* Code blocks */
pre {
Expand Down
1 change: 1 addition & 0 deletions website/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pre, code, .example script[type='application/json'] {
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
tab-size: 4;
hyphens: none;
white-space: pre;
}

/* Code blocks */
Expand Down

0 comments on commit 14bcc41

Please sign in to comment.