Module: Haml::Filters::CodeRay_raw

Includes:
Base
Defined in:
lib/haml-coderay.rb

Overview

CodeRay without ‘#{}` interpolation.

Examples:

Ruby


:coderay_raw
  #!ruby

  if true
    puts "#{hello}"
  end

See Also:

Instance Method Summary collapse

Instance Method Details

#compile(precompiler, text) ⇒ Object



70
71
72
73
74
75
# File 'lib/haml-coderay.rb', line 70

def compile(precompiler, text)
  text = Haml::Helpers::find_and_preserve(
    Haml::Filters::CodeRay.render(text).rstrip,
    precompiler.options[:preserve])
  precompiler.send(:push_text, text)
end