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



22
23
24
# File 'lib/faml/tilt.rb', line 22

def precompiled_template(_locals = {})
  @code
end

#prepareObject



14
15
16
17
18
19
20
# File 'lib/faml/tilt.rb', line 14

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