Sha256: f294fc307ecc899f300fb10534b45ac6a3628a7e08cd4549080264ab401323e4
Contents?: true
Size: 323 Bytes
Versions: 3
Compression:
Stored size: 323 Bytes
Contents
require 'ramaze' class MainController < Ramaze::Controller map '/' layout :page def index @title = "Test" "<p>Hello, World!</p>" end def page %{ <html> <head> <title>examples/layout</title> </head> <body> <h1>#@title</h1> #@content </body> </html> } end end Ramaze.start
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.2.0 | examples/layout.rb |
ramaze-0.2.1 | examples/layout.rb |
ramaze-0.3.0 | examples/layout.rb |