lib/fdoc/templates/service.html.erb in fdoc-0.2.1 vs lib/fdoc/templates/service.html.erb in fdoc-0.2.2
- old
+ new
@@ -22,30 +22,24 @@
<% end %>
</div>
<%= description %>
- <h2>
- Endpoints
- </h2>
+ <%= tag_with_anchor('h2', 'Endpoints') %>
<% endpoints.each do |endpoint_ary| %>
- <h3>
- <%= endpoint_ary.first.prefix %>
- </h3>
+ <%= tag_with_anchor('h3', endpoint_ary.first.prefix) %>
<ul>
<% endpoint_ary.each do |endpoint| %>
<li>
<%= endpoint.name_as_link %>
</li>
<% end %>
</ul>
<% end %>
<% if discussion %>
- <h2>
- Discussion
- </h2>
+ <%= tag_with_anchor('h2', 'Discussion') %>
<%= discussion %>
<% end %>
</div>
</div>
</body>