Documentations › mmo.git › js git MMO.git · 6 symboles · générée le 27 Oct 2026
MMO.git.config = MMO.git.config || null; Espace de noms MMO.gitfunction MMO.git.escape(text) Espace de noms MMO.gittext *retourne string$text, for html: code is shown, never run
A node, from its tag, its attributes (on* functions become listeners) and its children: nodes, or text -- a string is always a text node, never html (a commit's subject is someone's).
function MMO.git.node(tag, attributes = {}, ...children) Espace de noms MMO.gittag stringattributes = {} Object...children ...(Node | string | number | null)retourne HTMLElement
function MMO.git.t(text) Espace de noms MMO.gittext stringretourne string$text translated, when the page has mmo.client's translations
Prism's language for a file, from its name.
function MMO.git.language(path) Espace de noms MMO.gitpath ?stringretourne ?stringnull: no colours
Read DiffController: GET {MMO.git.config.url}/{path}.
async function MMO.git.get(path, query = {}, base = null) Espace de noms MMO.gitpath stringe.g. mmo.git/diff.json query = {} Object<string, *>its query string (null and '' values left out, arrays as key[]=) base = null ?stringDiffController's base url; none: MMO.git.config.url retourne Promise<Object>the answer's data lève Errorwith the server's error when it refuses