mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Force to override haml gem in tilt
This commit is contained in:
parent
16efc8d666
commit
425ee2e5bb
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,14 @@
|
|||
require 'temple'
|
||||
require 'hamlit/engine'
|
||||
|
||||
# Load tilt/haml first to override if available
|
||||
begin
|
||||
require 'haml'
|
||||
rescue LoadError
|
||||
else
|
||||
require 'tilt/haml'
|
||||
end
|
||||
|
||||
module Hamlit
|
||||
Template = Temple::Templates::Tilt.create(
|
||||
Hamlit::Engine,
|
||||
|
|
Loading…
Add table
Reference in a new issue