Module: Haml::Precompiler
- Included in:
- Engine
- Defined in:
- lib/haml/template/plugin.rb
Instance Method Summary collapse
- #push_silent_with_haml_block_deprecation(text, can_suppress = false) (also: #push_silent)
Instance Method Details
#push_silent_with_haml_block_deprecation(text, can_suppress = false) Also known as: push_silent
49 50 51 52 53 54 55 56 |
# File 'lib/haml/template/plugin.rb', line 49
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
|