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
Source
# File lib/haml/filters.rb, line 308 def render(text) Haml::Helpers.preserve text end
@see Base#render