Skip to content

About

Sinatra plugin to enable markaby (.mab) template rendering

Resources

Stars

2 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

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

# TODO: make it part of Erector

sudo gem install sbfaulkner-sinatra-erector -s http://gems.github.com
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
Author
  1. Brent Faulkner <brentf@unwwwired.net>

License

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

About

Sinatra plugin to enable markaby (.mab) template rendering

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages