Plugin details

Markaby is a very short bit of code for writing HTML pages in pure Ruby. It is an alternative to ERb which weaves the two languages together. Also a replacement for templating languages which use primitive languages that blend with HTML.

Websitehttp://rubyforge.org/projects/markaby Repositoryhttp://code.whytheluckystiff.net/svn/markaby/trunk/ Author why the lucky stiff Tags Templates, Markup LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk/

An example layout:

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

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: maxim_kulkin, about 1 year ago