class Slim::EmbeddedEngine::PrecompiledTiltEngine

Tilt-based engine which is precompiled

Protected Instance Methods

tilt_render(tilt_engine, tilt_options, text) click to toggle source
# File lib/slim/embedded_engine.rb, line 130
def tilt_render(tilt_engine, tilt_options, text)
  # WARNING: This is a bit of a hack. Tilt::Engine#precompiled is protected
  [:dynamic, tilt_engine.new(tilt_options) { text }.send(:precompiled, {}).first]
end