Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (24 sloc) 0.628 kb

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

Jump to Line
Something went wrong with that request. Please try again.