lib/faml/tilt.rb in faml-0.2.5 vs lib/faml/tilt.rb in faml-0.2.6
- old
+ new
@@ -2,10 +2,10 @@
require 'faml/engine'
module Faml
class Tilt < Tilt::Template
def prepare
- @code = Engine.new(options).call(data)
+ @code = Engine.new(options.merge(filename: File.expand_path(file))).call(data)
end
def precompiled_template(locals = {})
@code
end