[11:13pm] ArthurClemens: we could use a parameter that prevents TOC when the topic is included
[11:13pm] PeterThoeny: so technically it is ok to spit out tml as long as there are no vars
[11:13pm] ArthurClemens: to create better documentation topics
[11:14pm] PeterThoeny: ah, the previous mentioned issue of toc before heading
[11:14pm] ArthurClemens: right
[11:14pm] PeterThoeny: yes, that could be solved with a new parameter to toc
[11:15pm] ArthurClemens: if a topic 'know's it is included
[11:15pm] ArthurClemens: I remember vaguely there was a problem in there
[11:16pm] ArthurClemens: IF gives a problem as well: %IF{"$ TOPIC='WebHome' then=''}% is not possible
[11:17pm] PeterThoeny: looking at example, http://twiki.org/cgi-bin/view/TWiki04x01/TWikiPlugins
[11:18pm] PeterThoeny: the topic starts like this:
[11:18pm] PeterThoeny: %TOC%
[11:18pm] PeterThoeny: %STARTINCLUDE%
[11:18pm] PeterThoeny: ---# TWiki Plugins
[11:18pm] HaraldJoerg: To avoid this I usually have TOC before STARTINCLUDE
[11:18pm] HaraldJoerg: Ah - duplicate ideas :-)
[11:19pm] PeterThoeny: what we leally want is this:
[11:19pm] PeterThoeny: %STARTINCLUDE%
[11:19pm] PeterThoeny: ---# TWiki Plugins
[11:19pm] PeterThoeny: %TOC{ ...switch to turn this off if included... }%
[11:19pm] PeterThoeny: and some control to exclude a higher level heading
[11:20pm] PeterThoeny: so, basically: "give me a toc staryting from level 2, but only if not included
[11:20pm] PeterThoeny: "
[11:20pm] ArthurClemens: yes, instead of the ---+!! syntax
[11:20pm] ArthurClemens: (which is incomprehensible to my colleagues)
[11:21pm] PeterThoeny: in the use case for the twiki manual, we can't use --+!! syntax since this is needed to build the proper top level toc
[11:21pm] PeterThoeny: that is the basic reason for the current qurky solution of toc, startinclude, and unescaped level 1 heading