You are here: Foswiki>Tasks Web>Item2319 (11 Feb 2015, GeorgeClark)Edit Attach

Item2319: On INCLUDE the raw/literal option doesn't work

pencil
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: INCLUDE
Branches:
Reported By: RalfKrueger
Waiting For:
Last Change By: GeorgeClark
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

ItemTemplate edit

Summary On INCLUDE the raw/literal option doesn't work
ReportedBy RalfKrueger
Codebase 1.0.9, 1.0.8, 1.0.7, trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component INCLUDE
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 11 Feb 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy