I would like to propose a series of DOM helper functions:

Essentially, I'm proposing to map H1(attributes) to Builder.node('H1', attributes) a la Mochikit.

It could easily be done with:

H1(attributes) = Builder.node('H1', attributes)
DIV(attributes) = Builder.node('H1', attributes)
P(attributes) = Builder.node('H1', attributes)

etc.

It could also be used to make the table fixes standard:

TABLE(null) = Builder.node('table', {width:'100%',cellpadding:'2',cellspacing:'0',border:'0'})

--
Yehuda Katz
Web Developer
(ph)  718.877.1325
(fax) 718.686.4326
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to