Sunday, March 30, 2008

Markaby

Really digging Markaby and the potential it has to more easily create html in Ruby. Try to work in some Markaby along with your Erb in Rails. (Markaby is included in Camping microframework I believe... the code is very clean). Currently, I believe the latest version is 0.5 as of this writing. You can install it with a simple:

bash-3.2$ sudo gem install markaby


Read all about it:

http://markaby.rubyforge.org/

http://redhanded.hobix.com/inspect/markabyForRails.html

http://redhanded.hobix.com/inspect/markaby03.html

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

No comments: