PageRenderTime 131ms CodeModel.GetById 6ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/drillbit/Resources/tests/ruby/markaby/lib/markaby.rb

http://github.com/appcelerator/titanium_desktop
Ruby | 35 lines | 13 code | 4 blank | 18 comment | 0 complexity | e7b70049414d38be2e86f1dd34a6c4db MD5 | raw file
Possible License(s): Apache-2.0
  1. # = About lib/markaby.rb
  2. #
  3. # By requiring <tt>lib/markaby</tt>, you can load Markaby's dependency (the Builder library,)
  4. # as well as the full set of Markaby classes.
  5. #
  6. # For a full list of features and instructions, see the README.
  7. $:.unshift File.expand_path(File.dirname(__FILE__))
  8. # Markaby is a module containing all of the great Markaby classes that
  9. # do such an excellent job.
  10. #
  11. # * Markaby::Builder: the class for actually calling the Ruby methods
  12. # which write the HTML.
  13. # * Markaby::CSSProxy: a class which adds element classes and IDs to
  14. # elements when used within Markaby::Builder.
  15. # * Markaby::MetAid: metaprogramming helper methods.
  16. # * Markaby::Tags: lists the roles of various XHTML tags to help Builder
  17. # use these tags as they are intended.
  18. # * Markaby::Template: a class for hooking Markaby into Rails as a
  19. # proper templating language.
  20. module Markaby
  21. VERSION = '0.5'
  22. class InvalidXhtmlError < Exception; end
  23. end
  24. unless defined?(Builder)
  25. require 'rubygems'
  26. require 'builder'
  27. end
  28. require 'markaby/builder'
  29. require 'markaby/cssproxy'
  30. require 'markaby/metaid'
  31. require 'markaby/template'