lib/faml/tilt.rb in faml-0.2.15 vs lib/faml/tilt.rb in faml-0.2.16
- old
+ new
@@ -1,6 +1,12 @@
require 'tilt'
-require 'tilt/haml'
+# Load tilt/haml only when haml is available
+begin
+ require 'haml'
+rescue LoadError
+else
+ require 'tilt/haml'
+end
require 'faml/engine'
module Faml
class Tilt < Tilt::Template
def prepare