Module: Markaby

Defined in:
lib/markaby/lib/markaby.rb,
lib/markaby/lib/markaby/html5.rb,
lib/markaby/lib/markaby/rails.rb,
lib/markaby/lib/markaby/tagset.rb,
lib/markaby/lib/markaby/builder.rb,
lib/markaby/lib/markaby/version.rb,
lib/markaby/lib/markaby/cssproxy.rb,
lib/markaby/lib/markaby/xml_tagset.rb,
lib/markaby/lib/markaby/builder_tags.rb,
lib/markaby/lib/markaby/xhtml_strict.rb,
lib/markaby/lib/markaby/xhtml_frameset.rb,
lib/markaby/lib/markaby/xhtml_transitional.rb

Overview

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.

Defined Under Namespace

Modules: BuilderTags, Rails Classes: Builder, CssProxy, Fragment, HTML5, InvalidXhtmlError, Stream, Tagset, XHTMLFrameset, XHTMLStrict, XHTMLTransitional, XmlMarkup, XmlTagset

Constant Summary collapse

FORM_TAGS =
[:form, :input, :select, :textarea]
SELF_CLOSING_TAGS =
[:area, :base, :br, :col, :command, :embed, :frame, :hr,
:img, :input, :keygen, :link, :meta, :param, :source,
:track, :wbr]
AttrCore =

Common sets of attributes.

[:id, :class, :style, :title]
AttrI18n =
[:lang, :"xml:lang", :dir]
AttrEvents =
[:onclick,
:ondblclick,
:onmousedown,
:onmouseup,
:onmouseover,
:onmousemove,
:onmouseout,
:onkeypress,
:onkeydown,
:onkeyup]
AttrFocus =
[:accesskey, :tabindex, :onfocus, :onblur]
AttrHAlign =
[:align, :char, :charoff]
AttrVAlign =
[:valign]
Attrs =
AttrCore + AttrI18n + AttrEvents
AttrsBoolean =
[
  :checked, :disabled, :multiple, :readonly, :selected, # standard forms
  :autofocus, :required, :novalidate, :formnovalidate, # HTML5 forms
  :defer, :ismap, # <script defer>, <img ismap>
  :compact, :declare, :noresize, :noshade, :nowrap # deprecated or unused
]
RUBY_VERSION_ID =
RUBY_VERSION.split(".").join.to_i
MAJOR =
0
MINOR =
9
TINY =
0
VERSION =
"#{MAJOR}.#{MINOR}.#{TINY}"