Adding sample code to TemplateParser::processTemplate() docs
Also reverting punctuation that was accidently changed in change I28cd13d4d. Change-Id: I1283fbfbaf8cefbbc951599ee286d923b9dedf65
This commit is contained in:
parent
95be8acc30
commit
13aff8aa7c
2 changed files with 11 additions and 1 deletions
|
|
@ -166,6 +166,16 @@ class TemplateParser {
|
|||
|
||||
/**
|
||||
* Returns HTML for a given template by calling the template function with the given args
|
||||
*
|
||||
* @code
|
||||
* echo $templateParser->processTemplate(
|
||||
* 'ExampleTemplate',
|
||||
* array(
|
||||
* 'username' => $user->getName(),
|
||||
* 'message' => 'Hello!'
|
||||
* )
|
||||
* );
|
||||
* @endcode
|
||||
* @param string $templateName The name of the template
|
||||
* @param mixed $args
|
||||
* @param array $scopes
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<p>Please <a href="{{path}}mw-config/index.{{ext}}">complete the installation</a> and download LocalSettings.php.</p>
|
||||
{{/installerStarted}}
|
||||
{{^installerStarted}}
|
||||
<p>Please <a href="{{path}}mw-config/index.{{ext}}">set up the wiki</a> first!</p>
|
||||
<p>Please <a href="{{path}}mw-config/index.{{ext}}">set up the wiki</a> first.</p>
|
||||
{{/installerStarted}}
|
||||
{{/localSettingsExists}}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue