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.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 MarkupToHTML end
 5: 00.21 00.21 MarkupToHTML begin
 6: 00.21 00.21 MarkupToHTML end
 7: 00.22 00.21 MarkupToHTML begin
 8: 00.22 00.21 MarkupToHTML end
 9: 00.22 00.22 MarkupToHTML end
10: 00.23 00.22 MarkupToHTML begin
11: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.25 00.24 MarkupToHTML end
14: 00.25 00.24 MarkupToHTML begin
15: 00.25 00.24 MarkupToHTML end
16: 00.25 00.24 now
Peak memory: 3,725,616 bytes