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.

@see Haml::Helpers#preserve

Public Instance Methods

render(text) click to toggle source

@see Base#render

# File lib/haml/filters.rb, line 308
def render(text)
  Haml::Helpers.preserve text
end