> Hello,
>
> Studying the manual at http://webby.rubyforge.org/user-manual/
> I read:
>
Take a look at the user manual content file itself.
https://github.com/TwP/webby/blob/master/examples/webby/content/user-manual/index.txt
That page uses the outline filter and the <toc /> tag.
Blessings,
TwP
>
> Thanks, but in the meanwhile I experimented with examples provided in
> the webby release directory, and I found
> out that the cause is the use of the org filter.
>
> I am using org as a filter and not textile, because I want to
> translate a file written in emacs org mode
> (http://orgmode.org/)
>
> After some tests, it seems to me that the only way to do that is to
> use ERB to embed the original
> call to outline/toc. However I am not able to find how that call
> should look like. I am a beginner in Ruby.
> Therefore I would be helpful for any hints.
>
I'm not too sure that calling the outline filter manually via an ERb block would work. In your page, the ERb filter will be applied first and then the orgmode filter. The problem is that the outline filter needs a valid HTML document; it parses the heading tags (h1, h2, h3, ...) and generates a table of contents from those tags.
Is the orgmode filter generating header tags? If not, then the outline filter will not find anything from which it can generate a table of contents.
In order for the outline filter to work, the orgmode filter needs to output valid HTML that contains header tags.
I'm sorry that I cannot be much more help.
Blessings,
TwP