Module: Haml::Filters::Cdata

Includes:
Base
Defined in:
lib/haml/filters.rb

Instance Method Summary collapse

Methods included from Base

#compile, included, #internal_compile, #lazy_require, #render_with_options

Instance Method Details

#render(text) ⇒ Object



173
174
175
# File 'lib/haml/filters.rb', line 173

def render(text)
  "<![CDATA[#{("\n" + text).rstrip.gsub("\n", "\n    ")}\n]]>"
end