Wiki source code of Rendering

Last modified by superadmin on 2026/11/26 11:21

Show last authors
1 [[Rendering>>doc:extensions:Extension.Rendering Module.WebHome]] is the step XWiki runs between the text a Page stores and the result you read.
2
3 == From Stored Text to the Page You Read ==
4
5 XWiki stores a Page's content as text in [[XWiki Syntax>>xwiki:Documentation.UserGuide.Features.XWikiSyntax]], where ##= Release =## is a heading and ##~*~*frozen~*~*## is bold. Rendering reads that text and produces what you asked for: the Page in your browser, or the file you get when you [[export it>>doc:documentation.xs.user.exports.WebHome]].
6
7 {{plantuml}}
8 @startuml
9
10 skinparam nodesep 35
11 skinparam ranksep 45
12
13 actor "Reader" as R
14 file "Stored Page content:\nXWiki Syntax, with the\nMacros you inserted" as SRC
15 rectangle "XWiki renders the Page:\nit reads the syntax\nand runs every Macro" as RUN
16 card "The result:\nthe Page in the browser,\nor the file you export" as OUT
17
18 R --> RUN : opens or exports the Page
19 SRC --> RUN : read, never changed
20 RUN --> OUT
21 @enduml
22 {{/plantuml}}
23
24 Rendering never changes the stored text, and the result is never stored either: XWiki works it out again each time a Page is opened or exported. A Page therefore shows the wiki as it is at that moment, and shows each reader only what their rights allow.
25
26 == Macros, the Part XWiki Runs ==
27
28 Most of that stored text is formatting XWiki applies. [[Rendering Macros>>doc:documentation.xs.user.rendering.macros.WebHome]] are the part it runs instead: a table of contents, a chart or a list of Pages, worked out while the Page is being displayed and put in place of the Macro you inserted.

Get Connected