Module: Haml::Filters::Preserve
- Includes:
- Base
- Defined in:
- /var/www/sass-pages/.haml/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.
Instance Method Summary
Methods included from Base
#compile, included, #internal_compile, #lazy_require, #render_with_options
Instance Method Details
- render(text)
290 291 292 |
# File '/var/www/sass-pages/.haml/lib/haml/filters.rb', line 290
def render(text)
Haml::Helpers.preserve text
end
|