Sha256: b9cf8ebd8904b72ecad67c652849b9e3bdecb40de00f6228416fd99997cc3d58

Contents?: true

Size: 1.39 KB

Versions: 48

Compression:

Stored size: 1.39 KB

Contents

dir = File.dirname(__FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)

require 'haml/version'

# The module that contains everything Haml-related:
#
# * {Haml::Engine} is the class used to render Haml within Ruby code.
# * {Haml::Helpers} contains Ruby helpers available within Haml templates.
# * {Haml::Template} interfaces with web frameworks (Rails in particular).
# * {Haml::Error} is raised when Haml encounters an error.
# * {Haml::HTML} handles conversion of HTML to Haml.
#
# Also see the {file:HAML_REFERENCE.md full Haml reference}.
module Haml
  extend Haml::Version

  # A string representing the version of Haml.
  # A more fine-grained representation is available from Haml.version.
  VERSION = version[:string] unless defined?(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
  def self.init_rails(binding)
    # No &method here for Rails 2.1 compatibility
    %w[haml/template sass sass/plugin].each {|f| require f}
  end
end

require 'haml/util'
require 'haml/engine'
require 'haml/railtie'

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
radiantcms-couchrest_model-0.1.4 vendor/plugins/haml/lib/haml.rb
radiant-0.9.1 vendor/plugins/haml/lib/haml.rb
haml-2.2.24 lib/haml.rb
haml-edge-2.3.209 lib/haml.rb
haml-3.0.0.beta.3 lib/haml.rb
haml-edge-2.3.208 lib/haml.rb
haml-edge-2.3.207 lib/haml.rb
haml-edge-2.3.206 lib/haml.rb
haml-edge-2.3.205 lib/haml.rb
haml-edge-2.3.204 lib/haml.rb
haml-3.0.0.beta.2 lib/haml.rb
haml-2.2.23 lib/haml.rb
haml-edge-2.3.203 lib/haml.rb
haml-edge-2.3.202 lib/haml.rb
haml-edge-2.3.201 lib/haml.rb
haml-edge-2.3.200 lib/haml.rb
haml-edge-2.3.199 lib/haml.rb
haml-edge-2.3.198 lib/haml.rb
haml-edge-2.3.197 lib/haml.rb
haml-edge-2.3.196 lib/haml.rb