Module: Markaby

Defined in:
lib/gems/markaby-0.5/lib/markaby.rb,
lib/gems/markaby-0.5/lib/markaby/tags.rb,
lib/gems/markaby-0.5/lib/markaby/rails.rb,
lib/gems/markaby-0.5/lib/markaby/builder.rb,
lib/gems/markaby-0.5/lib/markaby/cssproxy.rb,
lib/gems/markaby-0.5/lib/markaby/template.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.

  • Markaby::Template: a class for hooking Markaby into Rails as a proper templating language.

Defined Under Namespace

Modules: ActionControllerHelpers Classes: ActionViewTemplateHandler, Builder, CssProxy, Fragment, InvalidXhtmlError, Template, XHTMLStrict, XHTMLTransitional

Constant Summary collapse

VERSION =
'0.5'
FORM_TAGS =
[ :form, :input, :select, :textarea ]
SELF_CLOSING_TAGS =
[ :base, :meta, :link, :hr, :br, :param, :img, :area, :input, :col ]
NO_PROXY =
[ :hr, :br ]
AttrCore =

Common sets of attributes.

[:id, :class, :style, :title]
AttrI18n =
[:lang, 'xml:lang'.intern, :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