OutputPage: Add addParserOutputContent() for more fine-grained control
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 8 May 2014 20:10:13 +0000 (22:10 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Fri, 20 Jun 2014 19:31:17 +0000 (19:31 +0000)
commite8f1fede77c5d593f57b3aaec3bfe2353e117314
treef867ae7121561de124ff9d2e0873d39bffb65259
parentec513507061172b6c1326c98685f8e821ca5151d
OutputPage: Add addParserOutputContent() for more fine-grained control

We previously had addParserOutput(), which added everything and did
some other magic, and addParserOutputNoText() which, as the same says,
added everything but the text.

I renamed addParserOutputNoText() to addParserOutputMetadata() and
created two more functions:

* addParserOutputText(): This is almost identical to adding the raw
  HTML, but calls the OutputPageBeforeHTML hook like other
  addParserOutput*() methods.

* addParserOutputContent(): Like addParserOutputText(), but also adds
  the ResourceLoader modules and variables associated with the parser
  output. This is important especially for some extensions like
  TemplateData or SyntaxHighlight which add styles to the page to
  enhance the display.

Change-Id: Iead541886fd1ccdbdf1cb06af71b34cd04644985
includes/OutputPage.php