Class: Hamlit::Filters::Plain

Inherits:
Base show all
Defined in:
lib/hamlit/filters/plain.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hamlit::Filters::Base

Instance Method Details

#compile(node) ⇒ Object


7
8
9
10
11
# File 'lib/hamlit/filters/plain.rb', line 7

def compile(node)
  text = node.value[:text]
  text = text.rstrip unless ::Hamlit::HamlUtil.contains_interpolation?(text) # for compatibility
  [:multi, *compile_plain(text)]
end