Module: HtmlFn

Defined in:
lib/html_fn.rb,
lib/html_fn/version.rb,
lib/html_fn/attributes.rb

Defined Under Namespace

Modules: Attributes

Constant Summary collapse

VERSION =
"0.3.2"
@@node =
->tag, attrs, elems {
  "<\#{tag} \#{Attributes.attrs_to_s.(attrs)}>\#{elems.join(\"\\n\")}</\#{tag}>\n"
}.curry
@@text =
->a { [a.to_s] }
@@script =
node.(:script)
@@table =
node.(:table)
@@thead =
node.(:thead)
@@tr =
node.(:tr)
@@th =
node.(:th)
@@td =
node.(:td)
@@tbody =
node.(:tbody)
@@div =
node.(:div)