Forum: Ruby on Rails Markaby (Markup as Ruby) plugin

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
why the lucky stiff (Guest)
on 2006-01-12 09:55
(Received via mailing list)
With the help of Tim F., I'm glad to present a new plugin for
writing HTML templates in plain Ruby.  You write .mab templates in
app/views/ which contain Builder-like representations of HTML.

As an illustration, here is the scaffold edit.rhtml remade as Markaby:

  h1 'Editing product'

  start_form_tag :action => 'update', :id => @product
    render :partial => 'form'
    submit_tag 'Edit'

  link_to 'Show', :action => 'show', :id => @product
  text " | "
  link_to 'Back', :action => 'list'

To install in your Rails app:

  script/plugin install

Many more examples and caveats can be looked over at the announcement:

Beaver tales,

This topic is locked and can not be replied to.