Module Ezamar
In: lib/ezamar/morpher.rb
lib/ezamar/engine.rb
lib/ezamar/version.rb
lib/ezamar/render_partial.rb
lib/ezamar/element.rb

Example:

Your Element called Page:

  class Page < Ezamar::Element
    def render
      %{
       <html>
         <h1>
           #@title
         </h1>
         #{content}
       </html>
       }
    end
  end

and one called SideBar

  class SideBar < Ezamar::Element
    def render
      %{
        <a href="http://something.com">something</a>
       }
     end
   end

and your template (any template for any action):

  <Page title="Test">
    <SideBar />
    <p>
      Hello, World!
    </p>
  </Page>

would result in:

  <html>
    <h1>
      Test
    </h1>
    <p>
      Hello, World!
    </p>
  </html>

Classes and Modules

Module Ezamar::Morpher
Class Ezamar::Element
Class Ezamar::RenderPartial
Class Ezamar::Template

Constants

VERSION = "2009.06"

[Validate]