Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (12 sloc) 0.564 kB
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|
b7d89af @egorkhmelev fix calcdeps.py script for finding .js.erb and another variants of ex…
egorkhmelev authored
4 # For developing purposes, Sprockets used to cache a lot even when server restarted
5 # app.assets.cache = false
27470cc @egorkhmelev proper deps calculation based on closure python script
egorkhmelev authored
6
7 app.assets.unregister_preprocessor 'application/javascript', Sprockets::DirectiveProcessor
8 app.assets.register_preprocessor 'application/javascript', ClosureDirectiveProcessor
9
2c25904 @igrigorik add soy / closure-template support
authored
10 app.assets.register_engine '.soy', SoyTemplateProcessor
9a280df @guilleiguaran Add Processor for Google Stylesheets
guilleiguaran authored
11 app.assets.register_engine '.gss', GssTemplateProcessor
0aa4cf6 @igrigorik import closure processor
authored
12 end
13
14 end
15 end
Something went wrong with that request. Please try again.