mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
docs: Fill out the templating table
This commit is contained in:
parent
d62dcaca44
commit
2e8b6d9dfa
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,7 @@ Key | Purpose
|
||||||
----------------------------|------------------
|
----------------------------|------------------
|
||||||
`{body}` | Holds the main body of the page.
|
`{body}` | Holds the main body of the page.
|
||||||
`{sitename}` | The name of the current installation of Pepperminty Wiki
|
`{sitename}` | The name of the current installation of Pepperminty Wiki
|
||||||
|
`{version}` | The current version of Pepperminty Wiki
|
||||||
`{favicon-url}` | The url of the favicon.
|
`{favicon-url}` | The url of the favicon.
|
||||||
`{header-html}` | The extra HTML that will be added to the `<head />` tag.
|
`{header-html}` | The extra HTML that will be added to the `<head />` tag.
|
||||||
`{navigation-bar}` | The navigation bar's HTML.
|
`{navigation-bar}` | The navigation bar's HTML.
|
||||||
|
@ -60,6 +61,10 @@ Key | Purpose
|
||||||
`{admins-name-list}` | The list of moderator's (user)names.
|
`{admins-name-list}` | The list of moderator's (user)names.
|
||||||
`{generation-date}` | The date at which the page was generated.
|
`{generation-date}` | The date at which the page was generated.
|
||||||
`{all-pages-datalist}` | The `<datalist />` tag that powers the search bar.
|
`{all-pages-datalist}` | The `<datalist />` tag that powers the search bar.
|
||||||
|
`{footer-message}` | The message in the footer of the page.
|
||||||
|
`{content}` | The main content of the page
|
||||||
|
`{extra}` | Content that gets put directly after the `<main>` element.
|
||||||
|
`{title}` | The page title.
|
||||||
|
|
||||||
[Take a look at the code](https://github.com/sbrl/Pepperminty-Wiki/blob/master/core.php#L394) to see the very latest list of parts.
|
[Take a look at the code](https://github.com/sbrl/Pepperminty-Wiki/blob/master/core.php#L394) to see the very latest list of parts.
|
||||||
|
|
||||||
|
@ -90,6 +95,8 @@ There are a number of global variables floating around that can give you a lot o
|
||||||
|
|
||||||
Variable | Description
|
Variable | Description
|
||||||
------------------------|------------------------------------------
|
------------------------|------------------------------------------
|
||||||
|
`$version` | The current version of Pepperminty Wiki
|
||||||
|
`$commit` | The git commit that the current version of Pepperminty Wiki was built from.
|
||||||
`$env` | An object that contains a _bunch_ of useful information about the current request.
|
`$env` | An object that contains a _bunch_ of useful information about the current request.
|
||||||
`$env->page` | The current page name.
|
`$env->page` | The current page name.
|
||||||
`$env->page_filename` | The filename that the current page is stored in.
|
`$env->page_filename` | The filename that the current page is stored in.
|
||||||
|
|
Loading…
Reference in a new issue