app/views/apitome/docs/_all_examples.html.erb in apitome-0.0.4 vs app/views/apitome/docs/_all_examples.html.erb in apitome-0.0.6

- old
+ new

@@ -1,10 +1,10 @@ <% resources.each do |resource| %> <section class="example" id="<%= id_for(resource['name']) %>"> + <h2 class="resource-name"><%= resource['name'] %></h2> <% resource['examples'].each do |example| %> <article id="<%= id_for(example['link'].gsub('.json', '')) %>"> - <% set_example(example['link'].gsub('.json', '')) %> - <%= render partial: 'example' %> + <%= render partial: 'example', locals: { example: set_example(example['link'].gsub('.json', '')) } %> </article> <% end %> </section> <% end %>