Class Ramaze::Gestalt
In: lib/ramaze/gestalt.rb
Parent: Object

Gestalt is the custom HTML/XML builder for Ramaze, based on a very simple DSL it will build your markup.

Methods

Attributes

out  [RW] 

Public Class methods

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.

Public Instance methods

build a tag for `name`, using `args` and an optional block that will be yielded

catching all the tags. passing it to _gestalt_build_tag

workaround for Kernel#p to make <p /> tags possible.

workaround for Kernel#select to make <select></select> work

to_str()

Alias for to_s

[Validate]