What is Markaby?
Markaby means Markup as Ruby.
#!ruby
html do
head do
title action_name
stylesheet_link_tag 'scaffold'
end
body do
p flash[:notice], :style => "color: green"
self << content_for_layout
end
end
In your Ruby application, generate HTML using pure Ruby.
Markaby can also be used as a Rails plugin, honoring the .mab extension in your view templates.
Installing
For Rails:
script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk
For Ruby:
gem install markaby
Learning
- See the initial anouncement and lively discussion on RedHanded.
- More discussion on Markaby 0.3 and on the xhtml-careful branch
- Documentation on Rubyforge
- TipsAndTrickery: got any to share?