[Pmwiki-users] Re: [[include: ... ]] part of a page

John Rankin john.rankin
Mon May 3 21:13:51 CDT 2004


On Tuesday, 4 May 2004 2:34 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
 An open
>question is what should happen with [[include:SomePage#from]] 
>if [[#from]] doesn't exist in SomePage-- should nothing be included?  
>(I believe my current implementation includes the entire page, but I
>think my vote would be to include nothing in this case.)

I'd prefer it to return

  anchor:anchorname not found in {{Pagename}}

suitably internationalised.

>Christian's suggestion to use
>[[include:SomePage#]] to mean "include the first paragraph" sounds pretty
>handy, but it's not entirely clear what constitutes a paragraph in this
>case.  We could have it be just the first markup line, but that's not 
>really necessary since someone can now do [[include:SomePage##1]] for that.
>So it would likely be either "everything to the first blank line", or 
>"everything to the first anchor".  I'm open for discussion on this point,
>and will leave this part of the implementation undefined until we've had
>a chance to better understand what we've built thus far.  :-)

I have also found the stop character `. very handy to have around for
including partial paragraphs in the T: and [[para: ... ]] markups.


>
>Pm
>
>-- 
>Pmwiki-users mailing list
>Pmwiki-users at pmichaud.com
>http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>


-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list