Module: Haml::Compiler

Includes:
Util
Included in:
Engine
Defined in:
lib/haml/compiler.rb,
lib/haml/template/plugin.rb

Constant Summary

Constants included from Util

Util::CHARSET_REGEXPS, Util::ENCODINGS_TO_CHECK, Util::RUBY_ENGINE, Util::RUBY_VERSION

Instance Method Summary collapse

Methods included from Util

#abstract, #ap_geq?, #ap_geq_3?, #assert_html_safe!, #av_template_class, #caller_info, #check_encoding, #check_haml_encoding, #def_static_method, #dump, #enum_cons, #enum_slice, #enum_with_index, #flatten, #haml_warn, #has?, #html_safe, #inspect_obj, #intersperse, #ironruby?, #lcs, #load, #map_hash, #map_keys, #map_vals, #merge_adjacent_strings, #ord, #paths, #powerset, #rails_env, #rails_root, #rails_safe_buffer_class, #rails_xss_safe?, #restrict, #ruby1_8?, #ruby1_8_6?, #scope, #set_eql?, #set_hash, #silence_haml_warnings, #silence_warnings, #static_method_name, #strip_string_array, #substitute, #to_hash, #try_sass, #version_geq, #version_gt, #windows?

Instance Method Details

#compile_silent_script_with_haml_block_deprecation(&block) Also known as: compile_silent_script



59
60
61
62
63
64
65
66
67
# File 'lib/haml/template/plugin.rb', line 59

def compile_silent_script_with_haml_block_deprecation(&block)
  unless block && [email protected][: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