README.md in middleman-presentation-0.15.5 vs README.md in middleman-presentation-0.15.6
- old
+ new
@@ -484,12 +484,15 @@
<a name="custom_templates"></a>
Addiontionlly users can define one `custom`-slide-template. It's file extension
is used for the resulting slide. Given a template `custom.erb.tt` it becomes
-`01.html.erb` when running `middleman slide 01`.
+`01.html.erb` when running `middleman slide 01`.
+You may need to add the
+template parser-gem to your `Gemfile` and require it in your `config.rb`.
+
**Example**
Given you want to create a presentation local custom slide template with haml
as template language. The created slides should automatically get `.haml` as
file extension. First you need to create the template directory.
@@ -508,20 +511,24 @@
system.
*templates/custom.haml.tt*:
```
-%h1 <%%= site_title %>
-%h2 <%%= title %>
+%section
+ %h1 Site Title
+ %h2 <%%= title %>
```
After writing the file to the filesystem you can use it with the
`slide`-command to create slide by running the following code.
```bash
# => creates source/slides/01.html.haml
bundle exec middleman slide 01
```
+
+If you have more than one "custom"-template the first is one used. The order is
+based on file name.
### Predefined slide templates
There are four predefined slide templates available: