lib/markaby.rb in markaby-0.5 vs lib/markaby.rb in markaby-0.6.6

- old
+ new

@@ -6,30 +6,25 @@ # For a full list of features and instructions, see the README. $:.unshift File.expand_path(File.dirname(__FILE__)) # Markaby is a module containing all of the great Markaby classes that # do such an excellent job. -# +# # * Markaby::Builder: the class for actually calling the Ruby methods # which write the HTML. # * Markaby::CSSProxy: a class which adds element classes and IDs to # elements when used within Markaby::Builder. # * Markaby::MetAid: metaprogramming helper methods. # * Markaby::Tags: lists the roles of various XHTML tags to help Builder # use these tags as they are intended. # * Markaby::Template: a class for hooking Markaby into Rails as a # proper templating language. module Markaby - VERSION = '0.5' + version_file = File.expand_path(File.dirname(__FILE__) + "/../VERSION") + VERSION = File.read(version_file).strip class InvalidXhtmlError < Exception; end end -unless defined?(Builder) - require 'rubygems' - require 'builder' -end - +require 'builder' unless defined?(Builder) require 'markaby/builder' require 'markaby/cssproxy' -require 'markaby/metaid' -require 'markaby/template'