Class: Dry::View::Tilt::ErbseTemplate Private
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Dry::View::Tilt::ErbseTemplate
- Defined in:
- lib/dry/view/tilt/erbse.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Tilt template class copied from cells-erb gem
Instance Method Summary collapse
- #precompiled_template(_locals) ⇒ Object private
- #prepare ⇒ Object private
Instance Method Details
#precompiled_template(_locals) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/dry/view/tilt/erbse.rb', line 15 def precompiled_template(_locals) @template.call(data) end |
#prepare ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/dry/view/tilt/erbse.rb', line 11 def prepare @template = ::Erbse::Engine.new end |