joomla/joomla-cms — pull request #4074 by dgt41 (2014-08-06 09:46:02+00:00)
Title: Add ability to override the renderer [New feature 3.x]

Scope
====
In Joomla! if you want to override something you have to put it in the active template directory (e.g.: the layouts goes in (active template)/html/layouts).
This PR introduces the ability to override the whole rendering process in the template by copying (and modifying per your preferences) the /libraries/joomla/document directory.

It shouldn't rise any backward compatibility issues (except that the directory [active template]/document might be in use?).

What you can do if this gets accepted?
======
Because renderers are the place where the code gets from arrays and strings to actual html, xml, raw, feed or json, you can do pretty much whatever you want.
Some examples of creative code that can be put in the renderers:
Put custom code in renderer html (eg minifier, remove _template = $this->_loadTemplate($directory . '/' . $template, $file). '’;```
(Add a comment after the document)
Refresh the page, see the source at the bottom you should have
You just overrided the render!

Feature tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=34027