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



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

def precompiled_template(_locals = {})
  @code
end

#prepareObject



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

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