module Haml::Filters::Preserve
Inserts the filtered text into the template with whitespace preserved. `preserve`d blocks of text aren't indented, and newlines are replaced with the HTML escape code for newlines, to preserve nice-looking output.
Public Instance Methods
render(text)
click to toggle source
@see Haml::Filters::Base#render
# File lib/haml/filters.rb, line 313 def render(text) Haml::Helpers.preserve text end