lib/fdoc/templates/endpoint.html.erb in fdoc-0.3.0 vs lib/fdoc/templates/endpoint.html.erb in fdoc-0.3.1
- old
+ new
@@ -9,11 +9,11 @@
</head>
<body>
<div id="page">
<div id="content">
<h1>
- <%= name %>
+ <%= render_erb('shared/endpoint_name.html.erb', endpoint_presenter.get_binding) %>
</h1>
<div id="nav">
<% if @endpoint.service.meta_service %>
<a href="<%= index_path %>">
@@ -29,22 +29,22 @@
<% if show_request? %>
<%= tag_with_anchor('h2', 'Request') %>
<%= tag_with_anchor('h3', 'Example Request') %>
- <%= example_request %>
+ <%= example_request.to_html %>
<%= tag_with_anchor('h3', 'Request Parameters') %>
- <%= request_parameters %>
+ <%= request_parameters.to_html %>
<% end %>
<%= tag_with_anchor('h2', 'Response') %>
<% if show_response? %>
<%= tag_with_anchor('h3', 'Example Response') %>
- <%= example_response %>
+ <%= example_response.to_html %>
<%= tag_with_anchor('h3', 'Response Parameters') %>
- <%= response_parameters %>
+ <%= response_parameters.to_html %>
<% end %>
<%= tag_with_anchor('h3', 'Response Codes') %>
<% if !successful_response_codes.empty? %>
<%= tag_with_anchor('h4', 'Successful Response Codes') %>