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:
kaldari 2015-02-20 11:09:43 -08:00
parent 95be8acc30
commit 13aff8aa7c
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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>