Skip to content

Latest commit

 

History

History
73 lines (57 loc) · 1.74 KB

RENDER.md

File metadata and controls

73 lines (57 loc) · 1.74 KB

W render engine scheme

This diagram represent W rendering chain.

flowchart TD

    0A(Head generation) -->
    0rss(RSS feed declaration) --> 3B

    2A[[Body]] -->
    2B(W inclusion)  ------->
    2C((Element inclusion)) --> 2D
    subgraph "post inclusion parser"
        2D(Summary) -->
        2rss(RSS detection) -->
        2H(Wiki links) -->
        2I(Link and media analysis) -->
        2pp(check for post render actions)
    end
    2pp -->
    3B((Head and Body gathering)) -->
    3C[[Rendered HTML]] --> 4c
    subgraph "post render actions"
        4c(counters) -->
        4j(js vars)
    end
    4j --> 5[\served web page/]


    1A[[Element]] -->
    1B(W inclusion) -->
    1C(every link*) -->
    1D(Markdown) --> 1E
    subgraph "post MD parser"
        1E(header ID) -->
        1F(URL linker) -->
        1G(HTML tag*)
    end
    1G --> 2C

    1E -. "send TOC structure" .-> 2D
    2rss -. "send rss links" .-> 0rss
    2pp -. trigger post render action .-> 4c
Loading
  • *every link: rendering option that transform every word as a link
  • *HTML tag: rendering option that does not print Element's corresponding HTML tags

W inclusions

List of W inclusions

  1. replace %DATE%, %DATEMODIF%, %TIME%, %TIMEMODIF% codes
  2. replace %THUMBNAIL% code
  3. replace %PAGEID% and %ID% code
  4. replace %URL% code
  5. replace %PATH% code
  6. replace %TITLE% code
  7. replace %DESCRIPTION% code
  8. replace %LIST% code
  9. replace %MEDIA% code
  10. replace %MAP% code
  11. replace %RANDOM% code
  12. replace %AUTHORS% code
  13. replace %CONNECT% code

The point of doing those inclusions early is to be before Header ID parser. That way, when they are used inside HTML headings, they will generate nicer IDs.