class Slim::Embedded::InterpolateTiltEngine
Static template with interpolated ruby code
Public Instance Methods
Source
# File lib/slim/embedded.rb, line 166 def collect_text(body) output_protector.call(interpolation.call(body)) end
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
Source
# File lib/slim/embedded.rb, line 176 def interpolation @interpolation ||= Interpolation.new end
Source
# File lib/slim/embedded.rb, line 180 def output_protector @output_protector ||= OutputProtector.new end