Sha256: 2898a7d0f3c12f6ddaaf2f75188c2b7a1512161712074685f28f8d8b51b8cfa3
Contents?: true
Size: 601 Bytes
Versions: 6
Compression:
Stored size: 601 Bytes
Contents
require 'ramaze' include Ramaze class Page < Ezamar::Element def render %{ <html> <head> <title>examples/element</title> </head> <body> <h1>#{@title}</h1> #{content} </body> </html> } end end class SideBar < Ezamar::Element def render %{ <div class="sidebar"> <a href="http://something.com">something</a> </div> } end end class MainController < Controller map '/' def index %{ <Page title="Test"> <SideBar /> <p> Hello, World! </p> </Page> } end end
Version data entries
6 entries across 6 versions & 1 rubygems