Skip to content

Commit 3473afc

Browse files
authored
Render erb-tags instead of processing in data README template (#57)
1 parent 8018a2f commit 3473afc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/generators/perron/templates/README.md.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ feature[:name]
4444

4545
You can render data collections directly using Rails-like partial rendering. When you call `render` on a data collection, Perron will automatically render a partial for each item.
4646
```erb
47-
<%= render Perron::Site.data.features %>
47+
<%%= render Perron::Site.data.features %>
4848
```
4949

5050
This expects a partial at `app/views/content/features/_feature.html.erb` that will be rendered once for each feature in your data file. The individual record is made available as a local variable matching the singular form of the collection name.
5151
```erb
5252
<!-- app/views/content/features/_feature.html.erb -->
5353
<div class="feature">
54-
<h4><%= feature.name %></h4>
55-
<p><%= feature.description %></p>
54+
<h4><%%= feature.name %></h4>
55+
<p><%%= feature.description %></p>
5656
</div>
5757
```

0 commit comments

Comments
 (0)