mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
7 lines
No EOL
286 B
Ruby
7 lines
No EOL
286 B
Ruby
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 |