Closed dteoh closed 13 years ago
Well, for now my solution is to monkey patch Tilt templates...
In my controller.rb:
class Tilt::HamlTemplate
def prepare
options = @options.merge(:filename => eval_file, :line => line)
# Custom options
options = options.merge :ugly => true
@engine = ::Haml::Engine.new(data, options)
end
end
Thanks for the contribution!
Just now running into this same issue and about the time I found this post, I also found another solution, which feels a little cleaner... put this in controller.rb...
Tilt.prefer Class.new(Tilt::SassTemplate){ def options; {:style => :compressed}; end }, 'scss'
Title.