mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
barber upgrade, get assets precompile working on 1.9
This commit is contained in:
@@ -4,10 +4,6 @@
|
||||
module Barber
|
||||
class EmberCompatPrecompiler < Barber::Precompiler
|
||||
|
||||
def self.call(template)
|
||||
"Handlebars.template(#{compile(template)})"
|
||||
end
|
||||
|
||||
def sources
|
||||
[handlebars, precompiler]
|
||||
end
|
||||
@@ -18,7 +14,7 @@ module Barber
|
||||
#{File.read(Rails.root + "app/assets/javascripts/discourse/lib/ember_compat_handlebars.js")}
|
||||
var Barber = {
|
||||
precompile: function(string) {
|
||||
return Discourse.EmberCompatHandlebars.precompile(string).toString();
|
||||
return Discourse.EmberCompatHandlebars.precompile(string,false).toString();
|
||||
}
|
||||
};
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user