[Dev] Named Includes (SECTION) now works
Ducky Sherwood
ducky at osafoundation.org
Tue Aug 24 10:07:17 PDT 2004
Jurgen has installed the Named Includes patch on the twiki, so now you
can designate multiple pieces of a wiki page to be included. This is
very powerful; you should now never need to maintain the same source on
two different wiki pages.
In the source wiki page, you can name a section to be included later by
wrapping it in SECTION/ENDSECTION as follows:
%SECTION{name="one"}% <!-- used by SectionTest -->
this is section one
%ENDSECTION%
To include a section, do the same thing you'd do to include a file but
also add
section="section_name"
e.g.:
%INCLUDE{"SectionTestSource" section="one"}%
I've put an example at:
http://wiki.osafoundation.org/bin/view/Jungle/SectionTest
More information about the Dev
mailing list