🕷 software releases

by ryan davis



sitemap

box_layout version 1.0.0 has been released!

Published 2007-03-24 @ 14:44

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}**" }

1.0.0 / 2007-03-24

  • 1 major enhancement
    • Birthday!