IncludeFromSelfPage

Testing to include from the same page as the location of the include statement

Also see IncludeFromSelfPage2

Now I try the directive.

(:include IncludeFromSelfPage#desc#desc-end:)

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

It doesn't work using {$Name} either. (works as of 2.2.0)

(:include {$Name}#desc#desc-end:)

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.


Below is the paragraph that will be extracted.

[[#desc]]
This is a paragraph starting with the label [@desc@] and ending with the paragraph [@desc-end@] in page [[Test/IncludeFromSelfPage]].
[[#desc-end]]

%comment% [=
[[#a]] Some text... [[#b]]
=]

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

[[#a]] Some text... [[#b]]


Comments

Rather than using include, wouldn't it make more sense to define "a macro" that was the target (not sure if this feature exists in any form in PmWiki).

So you might do something this:

  %definemacro% name = fred, content = { blah blah blah }

and then wherever you want the text to appear, just put in %fred% ...

NeilHerber January 21, 2005, at 07:41 AM

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.03 00.03 MarkupToHTML end
 5: 00.03 00.03 MarkupToHTML begin
 6: 00.04 00.03 MarkupToHTML end
 7: 00.04 00.03 MarkupToHTML begin
 8: 00.04 00.04 MarkupToHTML end
 9: 00.05 00.04 MarkupToHTML end
10: 00.05 00.05 MarkupToHTML begin
11: 00.06 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.06 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.07 00.06 MarkupToHTML end
14: 00.07 00.06 MarkupToHTML begin
15: 00.07 00.07 MarkupToHTML end
16: 00.07 00.07 now
Peak memory: 3,142,800 bytes