Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1424 Bytes
1 | dir = File.dirname(__FILE__) |
2 | $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) |
3 | |
4 | require 'haml/version' |
5 | |
6 | # The module that contains everything Haml-related: |
7 | # |
8 | # * {Haml::Engine} is the class used to render Haml within Ruby code. |
9 | # * {Haml::Helpers} contains Ruby helpers available within Haml templates. |
10 | # * {Haml::Template} interfaces with web frameworks (Rails in particular). |
11 | # * {Haml::Error} is raised when Haml encounters an error. |
12 | # * {Haml::HTML} handles conversion of HTML to Haml. |
13 | # |
14 | # Also see the {file:HAML_REFERENCE.md full Haml reference}. |
15 | module Haml |
16 | extend Haml::Version |
17 | |
18 | # A string representing the version of Haml. |
19 | # A more fine-grained representation is available from Haml.version. |
20 | VERSION = version[:string] unless defined?(Haml::VERSION) |
21 | |
22 | # Initializes Haml for Rails. |
23 | # |
24 | # This method is called by `init.rb`, |
25 | # which is run by Rails on startup. |
26 | # We use it rather than putting stuff straight into `init.rb` |
27 | # so we can change the initialization behavior |
28 | # without modifying the file itself. |
29 | # |
30 | # @param binding [Binding] The context of the `init.rb` file. |
31 | # This isn't actually used; |
32 | # it's just passed in in case it needs to be used in the future |
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 |
37 | end |
38 | |
39 | require 'haml/util' |
40 | require 'haml/engine' |
41 | require 'haml/railtie' |