1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/sinatra-contrib/spec/reloader/app.rb.erb

41 lines
696 B
Text
Raw Permalink Normal View History

class <%= name %> < <%= parent %>
<% if enable_reloader %>
register Sinatra::Reloader
enable :reloader
<% end %>
<% unless inline_templates.nil? %>
enable :inline_templates
<% end %>
2011-06-17 21:34:18 -04:00
<% extensions.each do |extension| %>
register <%= extension %>
<% end %>
2011-06-12 13:24:43 -04:00
<% middlewares.each do |middleware| %>
use <%= middleware %>
<% end %>
2011-06-16 20:45:10 -04:00
<% filters.each do |filter| %>
<%= filter %>
<% end %>
2011-06-25 19:39:26 -04:00
<% errors.each do |number, code| %>
error <%= number %> do
<%= code %>
end
<% end %>
<% routes.each do |route| %>
<%= route %>
<% end %>
end
<% unless inline_templates.nil? %>
__END__
<% inline_templates.each_pair do |name, content| %>
@@<%= name %>
<%= content %>
<% end %>
<% end %>