Skip to content

About

Sinatra plugin to enable markaby (.mab) template rendering

Resources

Stars

10 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

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

sudo gem install sbfaulkner-sinatra-markaby -s http://gems.github.com
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
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

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages