mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Rails gem-plugin compatibility, why not?
This commit is contained in:
parent
9016da55f5
commit
2dc50fd434
1 changed files with 7 additions and 0 deletions
7
rails/init.rb
Normal file
7
rails/init.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
begin
|
||||
require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
|
||||
rescue LoadError
|
||||
require 'haml' # From gem
|
||||
end
|
||||
|
||||
Haml.init_rails(binding)
|
Loading…
Add table
Reference in a new issue