mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
20 lines
332 B
Text
20 lines
332 B
Text
![]() |
class App < Sinatra::Base
|
||
|
register Sinatra::Reloader
|
||
|
<% unless inline_templates.nil? %>
|
||
|
enable :inline_templates
|
||
|
<% end %>
|
||
|
|
||
|
<% routes.each do |route| %>
|
||
|
<%= route %>
|
||
|
<% end %>
|
||
|
end
|
||
|
|
||
|
<% unless inline_templates.nil? %>
|
||
|
__END__
|
||
|
|
||
|
<% inline_templates.each_pair do |name, content| %>
|
||
|
@@<%= name %>
|
||
|
<%= content %>
|
||
|
<% end %>
|
||
|
<% end %>
|