blob: 1510595ec22e0146fdf467f0771e26d3fec28000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<% _level = level %>
<% _role = role %>
<% _id = id %>
<% _title = caption ? captioned_title : title %>
<% _content = content %>
<section class="section-<%= _level %><%= _role ? " #{role}" : '' %>">
<h<%= _level + 1 %> id="<%= _id %>" class="section-header">
<% if _id %>
<a href="#<%= _id %>">
<%= _title %>
</a>
<% else %>
<%= _title %>
<% end %>
</h<%= _level + 1 %>>
<div class="section-body">
<%= _content %>
</div>
</section>
|