Line: 79 to 79 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | ObjectMethod renderFORM (%params,$topic,$web) -> $tmlReturns TML of a TWiki Form, based on variable. | |||||||
ObjectMethod renderFORMFIELD (%params,$topic,$web) -> $htmlReturns the fully rendered expansion of a tag. | ||||||||
Added: | ||||||||
> > | ObjectMethod renderEDITFORM (%params,$topic,$web) -> $tmlReturns TML of a TWiki Form, based on variable. | |||||||
ObjectMethod *renderEDITFORMFIELD (%params,$topic,$web) -> $htmlReturns the fully rendered expansion of a EDITFORMFIELD Error: Required form field name is missing tag. |
Line: 53 to 53 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < | ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb,$hasExplicitLinkLabel) -> $html | |||||||
> > | ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb,$hasExplicitLinkLabel,$theParams) -> $html | |||||||
Generate a link. | ||||||||
Line: 66 to 66 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Called by _handleWikiWord and _handleSquareBracketedLink and by Func::internalLink | ||||||||
Line: 312 to 316 | ||||||||
to display that value, protect the value from further processing. The protected value is determined from the value of the field after: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 28 to 28 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | StaticMethod *chompUtf8Fragment ($str) -> $strString truncation may happen in the middle of a UTF-8 byte sequence. This function gets rid of the truncated fragment. | |||||||
ObjectMethod makeAnchorName ($anchorName,$compatibilityMode) -> $anchorName
| ||||||||
Line: 74 to 81 | ||||||||
Added: | ||||||||
> > | ObjectMethod *renderEDITFORMFIELD (%params,$topic,$web) -> $htmlReturns the fully rendered expansion of a EDITFORMFIELD Error: Required form field name is missing tag. | |||||||
ObjectMethod *getRenderedVersion ($text,$theWeb,$theTopic) -> $htmlThe main rendering function. |
Line: 101 to 101 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Added: | ||||||||
> > |
| |||||||
Line: 37 to 37 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | ObjectMethod *makeUniqueAnchorName ($web,$topic,$anchorName,$compatibility) -> $anchorName
| |||||||
ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb,$hasExplicitLinkLabel) -> $htmlGenerate a link. |
Line: 7 to 7 | ||||||||
---|---|---|---|---|---|---|---|---|
ClassMethod new ($session) | ||||||||
Changed: | ||||||||
< < | Creates a new renderer with initial state from preference values (NEWTOPICBGCOLOR, NEWTOPICFONTCOLOR NEWTOPICLINKSYMBOL LINKTOOLTIPINFO) | |||||||
> > | Creates a new renderer
ObjectMethod finish ()Break circular references. | |||||||
Line: 25 to 28 | ||||||||
Deleted: | ||||||||
< < | ObjectMethod *renderFormField ($web,$topic,$meta,$params) -> $textRender meta-data for a single formfield | |||||||
ObjectMethod makeAnchorName ($anchorName,$compatibilityMode) -> $anchorName | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Build a valid HTML anchor name | ||||||||
Changed: | ||||||||
< < | ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb) -> $html | |||||||
> > | ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb,$hasExplicitLinkLabel) -> $html | |||||||
Generate a link.
Note: Topic names may be spaced out. Spaced out names are converted to WikWords,
for example, "spaced topic name" points to "SpacedTopicName".
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Called by _handleWikiWord and _handleSquareBracketedLink and by Func::internalLink | ||||||||
Line: 113 to 111 | ||||||||
Deleted: | ||||||||
< < | ObjectMethod *takeOutProtected (\$text,$re,\%map) -> $text
ObjectMethod *putBackProtected (\$text,\%map,$callback) -> $textReturn value: $text with blocks added back
| |||||||
ObjectMethod takeOutBlocks (\$text,$tag,\%map) -> $text
| ||||||||
Line: 234 to 206 | ||||||||
\%options may contain:
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | The spec of \&fn is sub fn( \$line, \%options ) -> $newLine; the %options hash passed into this function is passed down to the sub, and the keys in_pre , in_verbatim and in_noautolink are set boolean TRUE if the line is from one (or more) of those block types. | |||||||
> > | The spec of \&fn is sub fn( $line, \%options ) -> $newLine . The %options
hash passed into this function is passed down to the sub, and the keys
in_literal , in_pre , in_verbatim and in_noautolink are set boolean
TRUE if the line is from one (or more) of those block types. | |||||||
The return result replaces $line in $newText. | ||||||||
Added: | ||||||||
> > | StaticMethod getReferenceRE ($web,$topic,%options) -> $re
s///
| |||||||
StaticMethod *replaceTopicReferences ($text,\%options) -> $textCallback designed for use with forEachLine, to replace topic references. \%options contains:
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
| ||||||||
Line: 275 to 270 | ||||||||
Deleted: | ||||||||
< < | StaticMethod *renderFormFieldArg ($meta,$args) -> $textParse the arguments to a $formfield specification and extract the relevant formfield from the given meta data.
args can be appended with a commas
followed by a string format (\d+)([,\s*]\.\.\.)?). This supports the formatted
search function $formfield and is used to shorten the returned string or a
hyphenated string.
| |||||||
StaticMethod breakName ($text,$args) -> $text
| ||||||||
Line: 301 to 282 | ||||||||
as it is a rendering function_ | ||||||||
Added: | ||||||||
> > |
StaticMethod *protectFormFieldValue ($value,$attrs) -> $htmlGiven the value of a form field, and a set of attributes that control how to display that value, protect the value from further processing. The protected value is determined from the value of the field after:
|
Line: 128 to 128 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < | ObjectMethod *putBackProtected (\$text,\%map,$tag,$newtag,$callBack) -> $text | |||||||
> > | ObjectMethod *putBackProtected (\$text,\%map,$callback) -> $text | |||||||
Return value: $text with blocks added back
| ||||||||
Added: | ||||||||
> > |
| |||||||
Reverses the actions of takeOutProtected. |
Line: 279 to 279 | ||||||||
---|---|---|---|---|---|---|---|---|
Parse the arguments to a $formfield specification and extract the relevant formfield from the given meta data. | ||||||||
Added: | ||||||||
> > |
args can be appended with a commas
followed by a string format (\d+)([,\s*]\.\.\.)?). This supports the formatted
search function $formfield and is used to shorten the returned string or a
hyphenated string. | |||||||
StaticMethod breakName ($text,$args) -> $text |
Line: 41 to 44 | |||||||||
---|---|---|---|---|---|---|---|---|---|
Generate a link. | |||||||||
Changed: | |||||||||
< < | SMELL: why can topic be spaced out? is this to support auto squishing of Spaced Topic Naming? and lowercase Spaced Topic Naming | ||||||||
> > | Note: Topic names may be spaced out. Spaced out names are converted to WikWords, for example, "spaced topic name" points to "SpacedTopicName". | ||||||||
| |||||||||
Line: 196 to 199 | |||||||||
| |||||||||
Deleted: | |||||||||
< < |
| ||||||||
| |||||||||
Added: | |||||||||
> > |
| ||||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | Package =TWiki::RenderThis module provides most of the actual HTML rendering code in TWiki.On this page:
ClassMethod new ($session)Creates a new renderer with initial state from preference values (NEWTOPICBGCOLOR, NEWTOPICFONTCOLOR NEWTOPICLINKSYMBOL LINKTOOLTIPINFO)ObjectMethod renderParent ($web,$topic,$meta,$params) -> $textRender parent meta-dataObjectMethod renderMoved ($web,$topic,$meta,$params) -> $textRender moved meta-dataObjectMethod *renderFormField ($web,$topic,$meta,$params) -> $textRender meta-data for a single formfieldObjectMethod makeAnchorName ($anchorName,$compatibilityMode) -> $anchorName
ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb) -> $htmlGenerate a link. SMELL: why can topic be spaced out? is this to support auto squishing of Spaced Topic Naming? and lowercase Spaced Topic Naming
ObjectMethod renderFORMFIELD (%params,$topic,$web) -> $htmlReturns the fully rendered expansion of a tag.ObjectMethod *getRenderedVersion ($text,$theWeb,$theTopic) -> $htmlThe main rendering function.StaticMethod *verbatimCallBackCallback for use with putBackBlocks that replaces < and > by their HTML entities < and >ObjectMethod TML2PlainText ($text,$web,$topic,$opts) -> $plainTextClean up TWiki text for display as plain text without pushing it through the full rendering pipeline. Intended for generation of topic and change summaries. Adds nop tags to prevent TWiki subsequent rendering; nops get removed at the very end. Defuses TML. $opts:
ObjectMethod *protectPlainText ($text) -> $tmlProtect plain text from expansions that would normally be done duing rendering, such as wikiwords. Topic summaries, for example, have to be protected this way.ObjectMethod *makeTopicSummary ($theText,$theTopic,$theWeb,$theFlags) -> $tmlMakes a plain text summary of the given topic by simply trimming a bit off the top. Truncates to $TMTRUNC chars or, if a number is specified in $theFlags, to that length.ObjectMethod *takeOutProtected (\$text,$re,\%map) -> $text
ObjectMethod *putBackProtected (\$text,\%map,$tag,$newtag,$callBack) -> $textReturn value: $text with blocks added back
ObjectMethod takeOutBlocks (\$text,$tag,\%map) -> $text
ObjectMethod putBackBlocks (\$text,\%map,$tag,$newtag,$callBack) -> $textReturn value: $text with blocks added back
|