templates/api/layout/html/layout.erb in yard-api-0.1.4 vs templates/api/layout/html/layout.erb in yard-api-0.1.5
- old
+ new
@@ -1,19 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<%= erb(:headers) %>
+
+ <% inline_stylesheets.each do |style| %>
+ <%= erb(style) %>
+ <% end %>
</head>
- <body class="theme-<%= api_options.theme %>">
+ <body class="theme-<%= api_options.theme %> <%= 'onefile' if api_options.one_file %>">
<div id="sidebar">
<%= erb(:sidebar) %>
</div>
<% if options[:all_resources] %>
<div id="content">
- <% if api_options['one_file'] %>
+ <% if api_options.one_file %>
<% static_pages.each do |page| %>
<%= diskfile page[:src] %>
<% end %>
<% end %>
@@ -25,7 +29,11 @@
<div id="content"><%= yieldall %></div>
<% end %>
<%= erb(:footer) %>
<%= erb(:scripts) %>
+
+ <% inline_javascripts.each do |script| %>
+ <%= erb(script) %>
+ <% end %>
</body>
</html>