I create 2 Topics:

Topic IncludeTest1
Include1 REVINFO=%REVINFO%

%INCLUDE{"IncludeTest2"}%

%INCLUDE{"IncludeTest2" raw="on" literal="on"}%

Topic IncludeTest2
Include2: REVINFO=%REVINFO%

When viewing Topic IncludeTest1 also on the third line I get the the %REVINFO% of IncludeTest2 and not as expected the %REVINFO% of IncludeTest1:

Result of IncludeTest1
Include1 REVINFO=r1 - 01 Nov 2009 - 17:43:55 - AdminUser 
Include2: REVINFO=r2 - 01 Nov 2009 - 17:36:32 - AdminUser 
Include2: REVINFO=r2 - 01 Nov 2009 - 17:36:32 - AdminUser   <= Why not the revision of IncludeTest1 ???


It appears that this is working as designed, but certainly not as desired (IMO). raw="on" is a shortcut for disableremoveheaders="on", disableremovescript="on", disableremovebody="on", disablecompresstags="on" and disablerewriteurls="on". All of these seem to be related to HTML processing, and from what I can see in the code all the way back to twiki, the raw= option is only referenced when handling url style includes.

However it would be a very desirable enhancement to be able to include raw topic content without any processing.

-- GeorgeClark - 13 May 2010

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads