class Slim::Embedded::InterpolateTiltEngine

Static template with interpolated ruby code

Public Instance Methods

collect_text(body) click to toggle source
# 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) click to toggle source
# 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

Private Instance Methods

interpolation() click to toggle source
# File lib/slim/embedded.rb, line 176
def interpolation
  @interpolation ||= Interpolation.new
end
output_protector() click to toggle source
# File lib/slim/embedded.rb, line 180
def output_protector
  @output_protector ||= OutputProtector.new
end