RubyGems.org

box_layout

1.0.0

Allows you to lay out HTML using ASCII art. Stolen from psykotic's code posted to reddit: http://programming.reddit.com/info/k9dx/comments == SYNOPSIS: require 'box_layout' page_template = <<-END ---------- | | ---------- | | | | | | | | | | | | | | | | ---------- | | ---------- END layout = BoxLayout.html page_template puts "<title>cute</title>" puts "<style>* { border: 1px solid black }</style>" puts layout % %w[header left body right footer].map {|s| "**#{s}**" } == REQUIREMENTS:

installgem install box_layout
Authors

Ryan Davis

1,948 total downloads 1,947 for this version
Owners

5a837592409354297424994e8d62f722

Gemfile
gem 'box_layout', '~> 1.0.0'
Versions
  1. 1.0.0 March 24, 2007 (6.5 KB)
Runtime Dependencies
  1. hoe >= 1.2.0