Module: Haml::Precompiler

Included in:
Engine
Defined in:
lib/haml/template/plugin.rb

Instance Method Summary collapse

Instance Method Details

#push_silent_with_haml_block_deprecation(text, can_suppress = false) Also known as: push_silent



47
48
49
50
51
52
53
54
# File 'lib/haml/template/plugin.rb', line 47

def push_silent_with_haml_block_deprecation(text, can_suppress = false)
  unless can_suppress && block_opened? && !mid_block_keyword?("- #{text}") &&
      text =~ ActionView::Template::Handlers::Erubis::BLOCK_EXPR
    return push_silent_without_haml_block_deprecation(text, can_suppress)
  end

  push_silent_without_haml_block_deprecation("_hamlout.append_if_string= #{text}", can_suppress)
end