Module: Tagz::Namespace

Defined in:
lib/tagz.rb

Defined Under Namespace

Modules: Globally, Privately Classes: Document, Element, HTMLSafe

Constant Summary collapse

Boolean =
%r[
  \A checked  \Z |
  \A selected \Z |
  \A disabled \Z |
  \A readonly \Z |
  \A autofocus \Z |
  \A multiple \Z |
  \A ismap    \Z |
  \A defer    \Z |
  \A declare  \Z |
  \A noresize \Z |
  \A nowrap   \Z |
  \A noshade  \Z |
  \A compact  \Z 
]iomx
NoEscapeContentProc =
lambda{|*contents| contents.join}
EscapeContentProc =
lambda{|*contents| Tagz.escapeHTML(contents.join)}
NoEscapeKeyProc =
lambda{|*values| values.join}
EscapeKeyProc =
lambda{|*values| Tagz.escapeAttribute(values).sub(/\Adata_/imox, 'data-') }
NoEscapeValueProc =
lambda{|*values| values.join}
EscapeValueProc =
lambda{|*values| Tagz.escapeAttribute(values)}