compile_silent_script_with_haml_block_deprecation(&block)
click to toggle source
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