Difference: TWikiRenderDotPm (11 vs. 12)

Revision 122020-01-22 - TWikiAdminUser

Line: 1 to 1
 

Package TWiki::Render

This module provides most of the actual HTML rendering code in TWiki.

Line: 57 to 58
  Generate a link.
Changed:
<
<
Note: Topic names may be spaced out. Spaced out names are converted to WikWords,
>
>
Note: OpenTopics names may be spaced out. Spaced out names are converted to WikWords,
 for example, "spaced topic name" points to "SpacedTopicName".
  • $theWeb - the web containing the topic
  • $theTopic - the topic to be link
Line: 65 to 66
 
  • $theAnchor - the link anchor, if any
  • $doLinkToMissingPages - boolean: false means suppress link for non-existing pages
  • $doKeepWeb - boolean: true to keep web prefix (for non existing Web.TOPIC)
Changed:
<
<
>
>
 
  • $theParams - the URL parameters specified by ?name1=value1;name2=valu2;... excluding the leading ?. This is added as per Item7505. This parameter's natural position is before $theAnchor. But to minimize code changes, it's introduced as the laster
Line: 137 to 138
 

ObjectMethod protectPlainText ($text) -> $tml

Protect plain text from expansions that would normally be done

Changed:
<
<
duing rendering, such as wikiwords. Topic summaries, for example,
>
>
duing rendering, such as wikiwords. OpenTopics summaries, for example,
 have to be protected this way.
Line: 281 to 282
 Callback designed for use with forEachLine, to replace topic references. \%options contains:
  • oldWeb => Web of reference to replace
Changed:
<
<
  • oldTopic => Topic of reference to replace
>
>
 
  • newWeb => Web of new reference
Changed:
<
<
  • newTopic => Topic of new reference
>
>
 
  • inWeb => the web which the text we are presently processing resides in
  • fullPaths => optional, if set forces all links to full web.topic form
For a usage example see TWiki::UI::Manage.pm
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. <br /> Ideas, requests, problems regarding lt;nopgt;TWiki? lt;a href='mailto:twiki-admin@kcl.ac.uk?subject=TWiki%20Feedback%20on%20TWiki.TWikiRenderDotPm'gt;Send feedbacklt;/agt; <br /> Note: Please contribute updates to this topic on TWiki.org at <a href="http://twiki.org/cgi-bin/view/TWiki/TWikiRenderDotPm" target="twiki.org">TWiki:TWiki.TWikiRenderDotPm</a>.