Jump to content

RHTML

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Progdev (talk | contribs) at 00:30, 13 April 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

RHTML is the default templating engine used by the Ruby on Rails web application framework. It allows a mix of HTML and inline Ruby code.

Example:

<ul>
  <% People.find( :all ).each do |person| %>
    <li><%= person.name %></li>
  <% end %>
</ul>