From: "Saji N. Hameed" Date: 2008-11-17T15:39:36+09:00 Subject: Re: erbook 4.0.0 (was previously named Gerbil) * Suraj Kurapati [2008-11-17 13:42:39 +0900]: > You could try turning the document inside-out: > > <% > chapter "Introduction" do > "some content here" + > > section "Something" do > "and in here" > end + > > "more content here" > end > %> hmmm...i have to use double quotes to delimit the text - not very convenient. According to eruby entry in Wikipedia http://en.wikipedia.org/wiki/ERuby , the following are equivalent, however the output from erbook is different for each. <% chapter "Introduction" do %> This is a chapter <% end %> % chapter "Introduction" do This is a chapter % end Compilation is ok, in case of the second way - however output is something like
% chapter "Introduction" do This is a chapter % end
For the first one, the correct html is returned as below:

Chapter 1
Introduction

This is a chapter
saji