mirror of
https://github.com/neocities/neocities.git
synced 2025-07-25 03:48:22 +02:00
event deleting
This commit is contained in:
parent
6277a94a5b
commit
a4a2b5165b
14 changed files with 105 additions and 31 deletions
7
ext/sinatra/base.rb
Normal file
7
ext/sinatra/base.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Sinatra::Base
|
||||
alias_method :render_original, :render
|
||||
def render(engine, data, options = {}, locals = {}, &block)
|
||||
options.merge!(pretty: self.class.development?) if engine == :slim && options[:pretty].nil?
|
||||
render_original engine, data, options, locals, &block
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue