Class: Slim::Embedded::InterpolateTiltEngine Private
- Inherits:
-
TiltEngine
- Object
- Temple::HTML::Filter
- Filter
- Engine
- TiltEngine
- Slim::Embedded::InterpolateTiltEngine
- Defined in:
- lib/slim/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 Filter
#on_slim_control, #on_slim_embedded, #on_slim_output, #on_slim_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.
165 166 167 |
# File 'lib/slim/embedded.rb', line 165 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.
169 170 171 |
# File 'lib/slim/embedded.rb', line 169 def tilt_render(tilt_engine, , text) output_protector.unprotect(tilt_engine.new() { text }.render) end |