Sha256: a3aa3841e44abe90106e6ee7bfb2c87a5b5c29f57d43bb060f22c5fc9f1254eb

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 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_file = File.expand_path(File.dirname(__FILE__) + "/../VERSION")
  VERSION      = File.read(version_file).strip

  class InvalidXhtmlError < StandardError; end
end

require 'builder' unless defined?(Builder)
require 'markaby/builder'
require 'markaby/cssproxy'

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mab-0.0.2 markaby/lib/markaby.rb
markaby-0.7.2 lib/markaby.rb