Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 15 lines (12 sloc) 0.486 kb
8b8c8d3e »
2011-08-03 switch to initializer for production support
1 module ClosureProcessor
2c25904f »
2011-08-21 add soy / closure-template support
2 class Railtie < Rails::Engine
0aa4cf65 »
2011-08-03 import closure processor
3 config.closure = ActiveSupport::OrderedOptions.new
4 config.closure.lib = 'vendor/assets/closure-library/closure'
5
8b8c8d3e »
2011-08-03 switch to initializer for production support
6 initializer :setup_closure do |app|
0aa4cf65 »
2011-08-03 import closure processor
7 app.assets.append_path config.closure.lib
2c25904f »
2011-08-21 add soy / closure-template support
8 app.assets.append_path 'vendor/assets'
9
0aa4cf65 »
2011-08-03 import closure processor
10 app.assets.register_preprocessor 'application/javascript', ClosureDependenciesProcessor
2c25904f »
2011-08-21 add soy / closure-template support
11 app.assets.register_engine '.soy', SoyTemplateProcessor
0aa4cf65 »
2011-08-03 import closure processor
12 end
13
14 end
15 end
Something went wrong with that request. Please try again.