Toflar/contao-css-class-replacer — pull request #6 by dmolineus (2014-12-10 10:40:39+00:00)
Title: Feature standalone rules

This pull requests extracts the Replacer logic from the listener and the database driven rule models.

With this changes it will be possible to load different rules into the replacer which can do anything to the dom document.

So there is no need to create another dom representation of the current document if other changes should be applied dynamically as well.

To summarize the changes:
* Introduce a `RuleInterface` and extract the css class replacer logic to `ClassAttributeRule`
* Introduce a `DomManipulator` which can be used without the `Listener`
* Provide a `loadCssClassReplacerRules` hook so that other rules can be loaded.