Module: TXPRails

Extended by:
Version
Defined in:
lib/txprails/template.rb,
lib/txprails.rb,
lib/txprails/util.rb,
lib/txprails/version.rb,
lib/txprails/commands.rb

Overview

Simple template initialization code Borrowed ideas from Haml, but VERY much simplyfied WARNING: We choose to use the plugin approach, so NO RAILS < 2.1.0 compatibility!

Defined Under Namespace

Modules: Util, Version Classes: Commands, TXPTemplateHandler

Constant Summary collapse

VERSION =

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

version[:string]

Constants included from Util

Util::RUBY_VERSION

Class Method Summary collapse

Methods included from Version

version

Methods included from Util

#av_template_class, #rails_root, #scope

Class Method Details

.init_railsObject

Initializes TXPRails 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.



19
20
21
# File 'lib/txprails.rb', line 19

def self.init_rails
  %w[txprails/template].each {|f| require f}
end