Introducing ContentGetParserOutput hook.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 16 Oct 2012 10:38:20 +0000 (12:38 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 4 Jun 2013 15:57:04 +0000 (15:57 +0000)
commitfda090a7e7f85f146ec84798fda45232ab67613e
treea51eed2fd6ba38c1965b82ca030933a7e0e24b99
parent371e1a02e342f46969e69ff81ced375bc787fd9b
Introducing ContentGetParserOutput hook.

This hooks allows extensions to override the normal model-specific rendering
of page content. A typical use would be to provide syntax highlighting for
pages that contain scripts. In that sense, ContentGetParserOutput is a
generalization of the old ShowRawCssJs hook.

Change-Id: Ibfb2cbefea44eeee9f2a027f47e7721bf177ba0f
docs/hooks.txt
includes/content/AbstractContent.php
includes/content/CssContent.php
includes/content/JavaScriptContent.php
includes/content/TextContent.php
includes/content/WikitextContent.php
tests/phpunit/includes/content/ContentHandlerTest.php
tests/phpunit/includes/content/CssContentTest.php
tests/phpunit/includes/content/TextContentTest.php