Class: Hamlit::Filters::Plain
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Hamlit::Filters::Base
Instance Method Details
#compile(node) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/hamlit/filters/plain.rb', line 4 def compile(node) text = node.value[:text].rstrip if ::Hamlit::HamlUtil.contains_interpolation?(text) # FIXME: Confirm whether this is correct or not text << "\n".freeze text = ::Hamlit::HamlUtil.slow_unescape_interpolation(text) [:escape, true, [:dynamic, text]] else [:static, text] end end |