Skip to content
Newer
Older
100644 15 lines (11 sloc) 472 Bytes
8b8c8d3 @igrigorik switch to initializer for production support
authored
1 module ClosureProcessor
2c25904 @igrigorik add soy / closure-template support
authored
2 class Railtie < Rails::Engine
8b8c8d3 @igrigorik switch to initializer for production support
authored
3 initializer :setup_closure do |app|
27470cc @egorkhmelev proper deps calculation based on closure python script
egorkhmelev authored
4 app.assets.cache = false
5
6 app.assets.unregister_preprocessor 'application/javascript', Sprockets::DirectiveProcessor
7 app.assets.register_preprocessor 'application/javascript', ClosureDirectiveProcessor
8
2c25904 @igrigorik add soy / closure-template support
authored
9 app.assets.register_engine '.soy', SoyTemplateProcessor
9a280df @guilleiguaran Add Processor for Google Stylesheets
guilleiguaran authored
10 app.assets.register_engine '.gss', GssTemplateProcessor
0aa4cf6 @igrigorik import closure processor
authored
11 end
12
13 end
14 end
Something went wrong with that request. Please try again.