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

25 lines
433 B
Text
Raw Normal View History

class <%= name %> < Sinatra::Base
register Sinatra::Reloader
enable :reloader
<% unless inline_templates.nil? %>
enable :inline_templates
<% end %>
2011-06-12 13:24:43 -04:00
<% middlewares.each do |middleware| %>
use <%= middleware %>
<% end %>
<% routes.each do |route| %>
<%= route %>
<% end %>
end
<% unless inline_templates.nil? %>
__END__
<% inline_templates.each_pair do |name, content| %>
@@<%= name %>
<%= content %>
<% end %>
<% end %>