Module: Haml

Extended by:
Version
Defined in:
lib/haml.rb,
lib/haml/exec.rb,
lib/haml/html.rb,
lib/haml/util.rb,
lib/haml/error.rb,
lib/haml/buffer.rb,
lib/haml/engine.rb,
lib/haml/shared.rb,
lib/haml/filters.rb,
lib/haml/filters.rb,
lib/haml/helpers.rb,
lib/haml/version.rb,
lib/haml/template.rb,
lib/haml/precompiler.rb,
lib/haml/template/plugin.rb,
lib/haml/helpers/action_view_extensions.rb

Overview

:stopdoc: This file makes Haml work with Rails using the > 2.0.1 template handler API.

Defined Under Namespace

Modules: Exec, Filters, Helpers, Precompiler, Shared, Util, Version Classes: Buffer, Engine, Error, HTML, Plugin, SyntaxError, Template

Constant Summary collapse

VERSION =

A string representing the version of Haml. A more fine-grained representation is available from Haml.version.

version[:string]

Class Method Summary collapse

Methods included from Version

scope, version

Class Method Details

.init_rails(binding) ⇒ Object

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.



1018
1019
1020
1021
# File 'lib/haml.rb', line 1018

def self.init_rails(binding)
  # No &method here for Rails 2.1 compatibility
  %w[haml/template sass sass/plugin].each {|f| require f}
end