Class: Faml::Tilt

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/faml/tilt.rb

Instance Method Summary collapse

Instance Method Details

#precompiled_template(locals = {}) ⇒ Object



15
16
17
# File 'lib/faml/tilt.rb', line 15

def precompiled_template(locals = {})
  @code
end

#prepareObject



7
8
9
10
11
12
13
# File 'lib/faml/tilt.rb', line 7

def prepare
  filename = nil
  if file
    filename = File.expand_path(file)
  end
  @code = Engine.new(options.merge(filename: filename)).call(data)
end