Sinatra plugin to enable markaby (.mab) template rendering
Ruby
Latest commit 654e417 Apr 29, 2009 S. Brent Faulkner test layout support (it works)
Permalink
Failed to load latest commit information.
lib/sinatra
test test layout support (it works) Apr 29, 2009
.gitignore first version Apr 29, 2009
CHANGES
LICENSE
README.rdoc whoops... missed one leftover from the copy paste of prawn readme Apr 29, 2009
Rakefile update description Apr 29, 2009
TODO
VERSION.yml
sinatra-markaby.gemspec test layout support (it works) Apr 29, 2009

README.rdoc

sinatra-markaby

sinatra-markaby is an extension for sinatra to enable rendering of html files using markaby templates.

Installation

sudo gem install sbfaulkner-sinatra-markaby -s http://gems.github.com

Example

require 'rubygems'
require 'sinatra'
require 'sinatra/markaby'

get '/' do
  markaby :template
end

__END__

@@ template
mab.html do
  head { title "Hello world" }
  body do
    p "Hello world!!!!!"
  end
end

Legal

Author

  1. Brent Faulkner <brentf@unwwwired.net>

License

Copyright © 2009 unwwwired.net, released under the MIT license