NAME:
<%= @name %>
DESCRIPTION:
<%= @description %>
SYNOPSIS:
<%= @syntax %>
<% unless @examples.empty? %>
EXAMPLES:
<% @examples.each do |example| %>
# <%= example[:description] %>
<%= example[:command] %>
<% end %>
<% end %>
<% unless @options.empty? %>
OPTIONS:
<% @options.each do |option| %>
<%= option[:args].join(', ') %>
<% end %>
<% end %>
Refactorings
No refactoring yet !
Just plain-jane ERB. What does rails do differently to allow <% -%> and <%= -%> ? to get below to actually format correctly I have to place the erb tags in a gross manor.. initializing ERB with <> or >