public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
Use the proper Merb root and environment constants. Thanks to Dan 
Gilkerson.

git-svn-id: svn://hamptoncatlin.com/haml/tags/stable@727 
7063305b-7217-0410-af8c-cdc13e5119b9
nex3 (author)
Thu Jan 10 15:16:12 -0800 2008
commit  b257b69c33c01d260fbac59936ea6db43c4508ad
tree    ef07a57e5f0a6830ea353de963c68d0ab8e08aff
parent  36717dec6044c48faa9ccc9306b480f27d1f2a7a
...
1
2
3
4
5
6
7
 
 
 
 
 
 
 
 
 
 
 
 
 
8
9
10
...
1
2
3
 
 
 
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,10 +1,19 @@
0
 unless defined?(Sass::MERB_LOADED)
0
   Sass::MERB_LOADED = true
0
 
0
- Sass::Plugin.options.merge!(:template_location => MERB_ROOT + '/public/stylesheets/sass',
0
- :css_location => MERB_ROOT + '/public/stylesheets',
0
- :always_check => MERB_ENV != "production",
0
- :full_exception => MERB_ENV != "production")
0
+ version = Merb::VERSION.split('.').map { |n| n.to_i }
0
+ if version[0] <= 0 && version[1] < 5
0
+ root = MERB_ROOT
0
+ env = MERB_ENV
0
+ else
0
+ root = Merb.root
0
+ env = Merb.environment
0
+ end
0
+
0
+ Sass::Plugin.options.merge!(:template_location => root + '/public/stylesheets/sass',
0
+ :css_location => root + '/public/stylesheets',
0
+ :always_check => env != "production",
0
+ :full_exception => env != "production")
0
   config = Merb::Plugins.config[:sass] || Merb::Plugins.config["sass"] || {}
0
   config.symbolize_keys!
0
   Sass::Plugin.options.merge!(config)

Comments

    No one has commented yet.