Suraj Kurapati wrote:
> Saji N. Hameed wrote:
> 
>> <% chapter "Introduction" do %>
>>     This is a chapter
>> <% end %>
>> 
>> % chapter "Introduction" do
>>     This is a chapter
>> % end
> 
> They were treated differently because the latter 
> was not enabled in erbook's usage of eRuby.

This has been fixed in erbook 5.0.0.
Indented usage is also supported now:

  % chapter "Introduction" do
    This is a chapter

    % section "Hello" do
      This is a section
    % end

    The time is:
    %= Time.now

  % end

Cheers.
-- 
Posted via http://www.ruby-forum.com/.