Module Haml
In: lib/haml/filters.rb
lib/haml/exec.rb
lib/haml/error.rb
lib/haml/template.rb
lib/haml/shared.rb
lib/haml/engine.rb
lib/haml/version.rb
lib/haml/template/plugin.rb
lib/haml/helpers.rb
lib/haml/html.rb
lib/haml/precompiler.rb
lib/haml/util.rb
lib/haml/helpers/xss_mods.rb
lib/haml/helpers/action_view_extensions.rb
lib/haml.rb

The module that contains everything Haml-related:

Also see the {file:HAML_REFERENCE.md full Haml reference}.

Methods

Classes and Modules

Module Haml::Exec
Module Haml::Filters
Module Haml::Helpers
Module Haml::Precompiler
Module Haml::Shared
Module Haml::Template
Module Haml::Util
Module Haml::Version
Class Haml::Engine
Class Haml::Error
Class Haml::HTML
Class Haml::Plugin
Class Haml::SyntaxError

Constants

VERSION = version[:string] unless defined?(Haml::VERSION)   A string representing the version of Haml. A more fine-grained representation is available from Haml.version.

Public Class methods

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

[Source]

    # 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

[Validate]