Class: Slimi::Filters::Embedded::InterpolateTiltEngine Private
- Inherits:
-
TiltEngine
- Object
- Temple::HTML::Filter
- Base
- Engine
- TiltEngine
- Slimi::Filters::Embedded::InterpolateTiltEngine
- Defined in:
- lib/slimi/filters/embedded.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.
Static template with interpolated ruby code
Instance Method Summary collapse
Methods inherited from TiltEngine
Methods inherited from Base
#on_slimi_control, #on_slimi_embedded, #on_slimi_output, #on_slimi_position, #on_slimi_text
Instance Method Details
#collect_text(body) ⇒ 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.
175 176 177 |
# File 'lib/slimi/filters/embedded.rb', line 175 def collect_text(body) output_protector.call(interpolation.call(body)) end |
#tilt_render(tilt_engine, tilt_options, text) ⇒ 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.
179 180 181 |
# File 'lib/slimi/filters/embedded.rb', line 179 def tilt_render(tilt_engine, , text) output_protector.unprotect(tilt_engine.new() { text }.render) end |