Class: Slim::Embedded::InterpolateTiltEngine Private

Inherits:
TiltEngine show all
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

API:

  • private

Instance Method Summary collapse

Methods inherited from TiltEngine

#on_slim_embedded

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.

API:

  • private



166
167
168
# File 'lib/slim/embedded.rb', line 166

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.

API:

  • private



170
171
172
# File 'lib/slim/embedded.rb', line 170

def tilt_render(tilt_engine, tilt_options, text)
  output_protector.unprotect(tilt_engine.new(tilt_options) { text }.render)
end