laysl
written by evan short
funded and founded by kalin harvey and trevor lott of dealer diagnostics

== DESCRIPTION:

this package makes a chain dsl for laying out a page. simple areas are
described using block syntax. extending and rendering objects is easily
overwritable, but does very little as it stands.

== FEATURES/PROBLEMS:

* beta
* needs more ponies

== SYNOPSIS:

ok, the first time you run +laysl+ you will get a <tt>~/.laysl</tt> and that
will define a context for you. make sense? good. check out load.rb
in ~/.laysl to make it make even more sense.

the only real object in effect is the Area. everything else extends
area at the moment. in the future i will pull the dsl module out
of the area class and then you will need to include the dsl module
instead of extending the Area. all of that will change. don't worry
about it. srsly.

be sure to check out the <tt>~/.laysl/areas</tt> folder for examples on doing
stuff. like extending an area to make a page.

also you have an example file that you can look at and run. after
running +laysl+ you will have <tt>~/.laysl/</tt> and it will have
+example.rb+ and you can run that with <tt>laysl ~/.laysl/example.rb</tt>

one thing i will try to explain:

this:
@page.record_all do |area|
puts area.record.inspect
end

and this:
class Area
def render
puts record.inspect
end
end

@page.record_all(:render)

do the same thing. im glad we workd that out.

questions can be sent to [email protected]

== INSTALL:

sudo gem install laysl

== LICENSE:

(The MIT License)

Copyright (c) 2007 Evan Short, Kalin Harvey, Trevor Lott

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.