mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
prettier dev render
This commit is contained in:
parent
27e32a82c8
commit
ca6f890223
1 changed files with 8 additions and 0 deletions
|
@ -51,3 +51,11 @@ Backburner.configure do |config|
|
|||
config.retry_delay = 200
|
||||
config.respond_timeout = 120
|
||||
end
|
||||
|
||||
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
Reference in a new issue