Module: Haml::Filters::Preserve

Includes:
Base
Defined in:
/var/build/temp/tmp.g5C1f6zb2g/4.0-0-0/ruby-haml/ruby-haml-3.1.6/lib/haml/filters.rb

Overview

Inserts the filtered text into the template with whitespace preserved. preserved blocks of text aren’t indented, and newlines are replaced with the HTML escape code for newlines, to preserve nice-looking output.

See Also:

Instance Method Summary (collapse)

Methods included from Base

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

Instance Method Details

- render(text)

See Also:



295
296
297
# File '/var/build/temp/tmp.g5C1f6zb2g/4.0-0-0/ruby-haml/ruby-haml-3.1.6/lib/haml/filters.rb', line 295

def render(text)
  Haml::Helpers.preserve text
end