From: William Manire Date: 2009-11-05T13:57:38+09:00 Subject: Re: Create HTML files using RUBY --001636e1f7aee74283047798901d Content-Type: text/plain; charset=ISO-8859-1 You've gotta remember all of the attributes and stuff to properly support CSS and the standard. You have to decide what standard you want to implement. HTML X.X, XHTML etc... w3schools is an awesome site that has a lot of information about the standards, but I would also check out the RFCs. Also remember that some of the standards seem to be universally ignored by all (or most) and you'll have to deal with related maintenance issues as a result :) Good luck 2009/11/4 Marnen Laibow-Koser > Greg Barozzi wrote: > [...] > > If I was going to write this myself I'd try something like: > > > > def h1 > > print "

" > > yield > > print "

" > > end > > > > h1 do > > print "I'm a heading!" > > end > > > > =>

I'm a heading!

> > > > > > By yielding to the block you allow yourself to nest other tags > > inside of tags which is something you often have to do when writing > > html. > > > > Good luck. > > Good point. This is the approach that Builder and Markaby take. In Web > apps, I prefer my markup not to look like Ruby, but in a situation like > that of the OP, Builder might be useful. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen@marnen.org > > -- > Posted via http://www.ruby-forum.com/. > > -- William Kevin Manire Lead Developer Edge Of Nowhere LLC (http://www.edgeofnowherellc.com) (206) 384-5826 --001636e1f7aee74283047798901d--