The module that contains everything Haml-related:
Also see the {file:HAML_REFERENCE.md full Haml reference}.
VERSION | = | version[:string] unless defined?(Haml::VERSION) | A string representing the version of Haml. A more fine-grained representation is available from Haml.version. |
Initializes Haml for Rails.
This method is called by `init.rb`, which is run by Rails on startup. We use it rather than putting stuff straight into `init.rb` so we can change the initialization behavior without modifying the file itself.
@param binding [Binding] The context of the `init.rb` file.
This isn't actually used; it's just passed in in case it needs to be used in the future
# File lib/haml.rb, line 33 33: def self.init_rails(binding) 34: # No &method here for Rails 2.1 compatibility 35: %w[haml/template sass sass/plugin].each {|f| require f} 36: end