1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

Add extra debug variable to display requested page name.

This commit is contained in:
Starbeamrainbowlabs 2016-04-08 09:50:13 +01:00
parent e576c8f286
commit b36e69d87e
4 changed files with 11 additions and 4 deletions

View file

@ -10,6 +10,7 @@
- Uploads show with an arrow next to them along with the size of the uploaded file
- Added mathematical expression parsing between dollar signs.
- Generated previews now have etags. This should speed up load times of subsequent requests significantly.
- Added an extra debug variable that displays the top level page name (i.e. the page that has been requested). It can be used like this: `{{{~}}}`
# Changed
- Enhanced the dev help page some more

View file

@ -4122,7 +4122,7 @@ register_module([
register_module([
"name" => "Parsedown",
"version" => "0.6",
"version" => "0.6.1",
"author" => "Emanuil Rusev & Starbeamrainbowlabs",
"description" => "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https://github.com/erusev/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
"id" => "parser-parsedown",
@ -4243,6 +4243,9 @@ class PeppermintParsedown extends ParsedownExtra
}
$variableValue .= "</ol>\n";
break;
case "~":
if(!empty($this->paramStack))
$variableValue = $this->escapeText($env->page);
// TODO: Add a option that displays a list of subpages here
}
if(isset($params[$variableKey]))

View file

@ -190,11 +190,11 @@
},
{
"name": "Parsedown",
"version": "0.6",
"version": "0.6.1",
"author": "Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
"id": "parser-parsedown",
"lastupdate": 1460104210,
"lastupdate": 1460105270,
"optional": false
}
]

View file

@ -1,7 +1,7 @@
<?php
register_module([
"name" => "Parsedown",
"version" => "0.6",
"version" => "0.6.1",
"author" => "Emanuil Rusev & Starbeamrainbowlabs",
"description" => "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https://github.com/erusev/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
"id" => "parser-parsedown",
@ -122,6 +122,9 @@ class PeppermintParsedown extends ParsedownExtra
}
$variableValue .= "</ol>\n";
break;
case "~":
if(!empty($this->paramStack))
$variableValue = $this->escapeText($env->page);
// TODO: Add a option that displays a list of subpages here
}
if(isset($params[$variableKey]))