PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::UI
Child packages:

    SMELL / FIX / TODO count: 14

    internal package Foswiki::UI::RDiff

    UI functions for diffing.

    TODO: this needs to be exposed to plugins and whoever might want to over-ride the rendering of diffs
    TODO: I'm starting to think that we should have a variable number of lines of context. more context if you are doing a 1.13 tp 1.14 diff, less when you do a show page history.
    TODO: **URGENT** the diff rendering dies badly when you have table cell changes and context
    TODO: ?type={history|diff} so that you can do a normal diff between r1.3 and r1.32 (rather than a history) (and when doing a history, we maybe should not expand %SEARCH...
    | TODO: | this should move to Render.pm |
    SMELL: assumption about storage of meta-data embedded in topic
    | TODO: | this should move to Render.pm |
    | TODO: | this should move to Render.pm |
    | TODO: | this should move to Render.pm |
    | TODO: | move into Render.pm |
    FIXME: Intelligently remove followup lines in case META:TOPICINFO is the only change

    StaticMethod diff( $session )

    diff command handler. This method is designed to be invoked via the UI::run method.

    Renders the differences between version of a topic
    topic topic that we are showing the differences of
    rev1 the higher revision
    rev2 the lower revision
    render the rendering style {sequential, sidebyside, raw, debug} (preferences) DIFFRENDERSTYLE, sequential
    type {history, diff, last} history diff, version to version, last version to previous history
    context number of lines of context
    skin the skin(s) to use to display the diff
    TODO:
    * add a {word} render style
    • move the common CGI param handling to one place
    • move defaults somewhere

    SMELL: made this conditional as it doesn't seem to be used
    $after =~ s/%TAIL%/$tailResult/g;SMELL: unused in templates

    StaticMethod revisionsAround($session, $topicObject, $requestedRev, $showRev, $maxRev) → $output

    Calculate the revisions spanning the current one for display in the bottom bar.

    This topic: System > Category > DeveloperDocumentationCategory > PerlDoc
    Topic revision: 15 Mar 2026, UnknownUser
    This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
    Ideas, requests, problems regarding Foswiki? Send feedback