[Pmwiki-users] Include bug or feature

Neil Herber nospam
Fri Jan 21 07:43:14 CST 2005


At 2005-01-21  03:17 PM +0100, chr at home.se is rumored to have said:
>While trying to understand how (:include:) works by looking at the code I
>noticed that you can't include stuff from the same page that you have the
>directive. I'm not sure if this is a bug or a feature...
>
>See http://www.pmwiki.com/wiki/Test/IncludeFromSelfPage for an
>illustration.


I added this to the page:

>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% ...



Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list