Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sinatra plugin to enable markaby (.mab) template rendering
branch: master

This branch is even with alexch:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/sinatra
test
.gitignore
CHANGES
LICENSE
README.rdoc
Rakefile
TODO
VERSION.yml
sinatra-erector.gemspec

README.rdoc

sinatra-erector

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

Installation

# TODO: make it part of Erector

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

Example

require 'rubygems'
require 'sinatra'
require 'sinatra/erector'

get '/' do
  erector :template
end

__END__

@@ template
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

Something went wrong with that request. Please try again.