Don't use a setting to disable Padrino asset stamp
This commit is contained in:
parent
e68c74b4f7
commit
6a5ecb17a3
1 changed files with 5 additions and 3 deletions
|
@ -22,15 +22,17 @@ module Middleman
|
||||||
app.helpers Helpers
|
app.helpers Helpers
|
||||||
|
|
||||||
app.config.define_setting :relative_links, false, 'Whether to generate relative links instead of absolute ones'
|
app.config.define_setting :relative_links, false, 'Whether to generate relative links instead of absolute ones'
|
||||||
|
|
||||||
# Disable Padrino cache buster
|
|
||||||
app.set :asset_stamp, false
|
|
||||||
end
|
end
|
||||||
alias :included :registered
|
alias :included :registered
|
||||||
end
|
end
|
||||||
|
|
||||||
# The helpers
|
# The helpers
|
||||||
module Helpers
|
module Helpers
|
||||||
|
# Disable Padrino cache buster
|
||||||
|
def asset_stamp
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
# Output a stylesheet link tag based on the current path
|
# Output a stylesheet link tag based on the current path
|
||||||
#
|
#
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
|
Loading…
Reference in a new issue