The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
CSS for layout? bah! Use ASCII art!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ryan Davis

Posts: 651
Nickname: zenspider
Registered: Oct, 2004

Ryan Davis is a ruby nerd.
CSS for layout? bah! Use ASCII art! Posted: Sep 29, 2006 6:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Ryan Davis.
Original Post: CSS for layout? bah! Use ASCII art!
Feed Title: Polishing Ruby
Feed URL: http://blog.zenspider.com/index.rdf
Feed Description: Musings on Ruby and the Ruby Community...
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Ryan Davis
Latest Posts From Polishing Ruby

Advertisement

I stole the code posted on reddit earlier today and ported it to ruby. Now I can do the following:

layout = BoxLayout.html <<-END
----------
|        |
----------
| |    | |
| |    | |
| |    | |
| |    | |
----------
|        |
----------
END

puts layout % [header, left_sidebar,
               body,
               right_sidebar, footer]

and get layout code that looks much much cleaner than the equivalent HTML/rhtml/whatever. I can instantly look at this code and know what it is gonna look like in a browser. I'll release this soon, but I have some enhancements for codeforpeople's rubyforge and seattle.rb's hoe first.

Read: CSS for layout? bah! Use ASCII art!

Topic: More on GDB and Ruby Previous Topic   Next Topic Topic: Validating Email Addresses, URLs and IP Formats with Regex in Ruby on Rails

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use