Sha256: 5d4eb04d3d31db2dda50ae0b62aff204b6e25b34da5affb21119694cc2c1ae16
Contents?: true
Size: 626 Bytes
Versions: 21
Compression:
Stored size: 626 Bytes
Contents
require 'rubygems' require '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 < Ramaze::Controller map '/' def index %{ <Page title="Test"> <SideBar /> <p> Hello, World! </p> </Page> } end end Ramaze.start
Version data entries
21 entries across 21 versions & 5 rubygems