Class: Faml::Tilt
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Faml::Tilt
- 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 |
#prepare ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/faml/tilt.rb', line 14 def prepare filename = nil if file filename = File.(file) end @code = Engine.new(.merge(filename: filename)).call(data) end |