edgedesign / preformat-for-texy-bundle
This bundle provides filters, that can transform given content in various ways.
0.3
2014-03-13 14:23 UTC
Requires
- fluentdom/fluentdom: 4.1.*
This package is not auto-updated.
Last update: 2024-10-22 05:47:32 UTC
README
This bundle provides Twig magro preformat
, that can trigger some changes on input HTML source code.
Inside, there are several Preformatter, that manipulate with given code.
Currently defined Preformatters
- PreCodePreformatter - changes occurences of
in blocks into /--code source --source
- CodePreformatter - changes occurences of
source
in line intosource
.
Defining new Preformatter
- Preformatter must implement Preformatter\PreformatterInterface.
- Preformatter must be declared as a service with tag called "edge.preformatter". Optional priority might be specified. The higher priority, the sooner the service will be called. Default priority is 0.