Sha256: daab082950f1dcca4b6c6a17f520e9ab256c8d9c0078e0746a042b8ac76f1c53

Contents?: true

Size: 1.45 KB

Versions: 147

Compression:

Stored size: 1.45 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.
  # @api public
  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'
unless $0 =~ /sass(-convert)?$/
  require 'haml/engine'
  require 'haml/railtie'
end

Version data entries

147 entries across 147 versions & 4 rubygems

Version Path
radiant-1.0.0.rc1 vendor/plugins/haml/lib/haml.rb
haml-3.0.25 lib/haml.rb
radiantcms-couchrest_model-0.1.3 vendor/plugins/haml/lib/haml.rb
radiantcms-couchrest_model-0.1.2 vendor/plugins/haml/lib/haml.rb
radiantcms-couchrest_model-0.1.1 vendor/plugins/haml/lib/haml.rb
radiantcms-couchrest_model-0.1 vendor/plugins/haml/lib/haml.rb
haml-3.0.24 lib/haml.rb
haml-3.0.23 lib/haml.rb
haml-3.0.22 lib/haml.rb
haml-3.0.21 lib/haml.rb
haml-edge-3.1.79 lib/haml.rb
haml-edge-3.1.78 lib/haml.rb
haml-edge-3.1.77 lib/haml.rb
haml-edge-3.1.76 lib/haml.rb
haml-edge-3.1.75 lib/haml.rb
haml-edge-3.1.74 lib/haml.rb
haml-edge-3.1.73 lib/haml.rb
haml-edge-3.1.72 lib/haml.rb
haml-edge-3.1.71 lib/haml.rb
haml-3.0.18 lib/haml.rb