module Haml::Compiler

Public Instance Methods

compile_silent_script_with_haml_block_deprecation(&block) click to toggle source
# File lib/haml/template/plugin.rb, line 59
def compile_silent_script_with_haml_block_deprecation(&block)
  unless block && !@node.value[:keyword] &&
      @node.value[:text] =~ ActionView::Template::Handlers::Erubis::BLOCK_EXPR
    return compile_silent_script_without_haml_block_deprecation(&block)
  end

  @node.value[:text] = "_hamlout.append_if_string= #{@node.value[:text]}"
  compile_silent_script_without_haml_block_deprecation(&block)
end
Also aliased as: compile_silent_script
compile_silent_script_without_haml_block_deprecation() click to toggle source