Class | Ramaze::Gestalt |
In: |
lib/ramaze/gestalt.rb
|
Parent: | Object |
out | [RW] |
The default way to start building your markup. Takes a block and returns the markup.
Example:
html = Gestalt.build do html do head do title "Hello, World!" end body do h1 "Hello, World!" end end end
Gestalt.new is like ::build but will return itself. you can either access out or .to_s it, which will return the actual markup.
Useful for distributed building of one page.