ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: Create HTML files using RUBY
by William Manire other posts by this author
Nov 4 2009 8:57PM messages near this date
Re: Create HTML files using RUBY | Re: Create HTML files using RUBY
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 <marnen@[...].org> 

>  Greg Barozzi wrote:
>  [...]
>  > If I was going to write this myself I'd try something like:
>  >
>  > def h1
>  >    print "<H1>"
>  >    yield
>  >    print "</H1>"
>  > end
>  >
>  > h1 do
>  >    print "I'm a heading!"
>  > end
>  >
>  > => <H1>I'm a heading!</h1>
>  >
>  >
>  > 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@[...].org
> 
>  --
>  Posted via http://www.ruby-forum.com/.
> 
> 


-- 
William Kevin Manire
Lead Developer
Edge Of Nowhere LLC (http://www.edgeofnowherellc.com)
(206) 384-5826
Thread:
Krithika San
Greg Barozzi
David
Ehsanul Hoque
Ken Bloom
Gregory Brown
Ehsanul Hoque
Marnen Laibow-Koser
William Manire
Marnen Laibow-Koser
Krithika San
Marnen Laibow-Koser
Krithika San
Justin Collins
Krithika San
Marnen Laibow-Koser
Krithika San
Brian Candler
Marnen Laibow-Koser
Marc Heiler
William Manire
Gregory Brown
Gregory Brown

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved