Skip to content

Commit

Permalink
class list documentation; and a fix for trailing whitespace in the cl…
Browse files Browse the repository at this point in the history
…asslist
  • Loading branch information
jdan committed Mar 8, 2014
1 parent 5f98232 commit 995811f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Cleaver slides are rendered using the following template:

```handlebars
{{#slides}}
<div class="slide{{#hidden}} hidden{{/hidden}}" id="slide-{{id}}">
<div class="slide{{#hidden}} hidden{{/hidden}} {{classList}}" id="slide-{{id}}">
<section class="slide-content">{{{content}}}</section>
</div>
{{/slides}}
Expand Down Expand Up @@ -198,6 +198,21 @@ the page.
**.slide-content** is a smaller window which holds the actual content of the
slide.

### Class List

A class list can be placed after each "slice" (denoted `--`) to help you
style individual slides without worrying about their index.

```
-- bg
This slide will have a class "bg" associated with it
-- bg blink
This one, too, but it will also have the class "blink"
```

## Slide Types

### Title slide
Expand Down
2 changes: 1 addition & 1 deletion templates/default.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{/progress}}

{{#slides}}
<div class="slide{{#hidden}} hidden{{/hidden}} {{classList}}" id="slide-{{id}}">
<div class="slide{{#hidden}} hidden{{/hidden}}{{#classList}} {{classList}}{{/classList}}" id="slide-{{id}}">
<section class="slide-content">{{{content}}}</section>
</div>
{{/slides}}
Expand Down

0 comments on commit 995811f

Please sign in to comment.