Sha256: b8a5652df1c1cdb8caee900c3be98958f7c17074d4b3111e522f204f9b6565eb

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

# = About lib/markaby.rb
#
# By requiring <tt>lib/markaby</tt>, you can load Markaby's dependency (the Builder library,)
# as well as the full set of Markaby classes.
#
# 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'

  class InvalidXhtmlError < StandardError; end
end

unless defined?(Builder)
  require 'rubygems'
  begin
    require 'builder'
  rescue LoadError => e
    begin
      require 'activesupport'
    rescue LoadError
      raise e
    end
  end
end

require 'markaby/builder'
require 'markaby/cssproxy'
require 'markaby/metaid'
require 'markaby/template'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tobyh-markaby-1.0.0 lib/markaby.rb