This file makes Haml work with Rails using the > 2.0.1 template handler API.
VERSION | = | version[:string] unless defined?(Haml::VERSION) | A string representing the version of Haml. A more fine-grained representation is available from Haml.version. @api public | |
ROOT_DIR | = | File.expand_path(File.join(__FILE__, "../../..")) | The root directory of the Haml source tree. This may be overridden by the package manager if the lib directory is separated from the main source tree. @api public |
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