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

This package is not auto-updated.

Last update: 2024-11-19 06:08:52 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
    source
    in blocks into /--code source --
  • CodePreformatter - changes occurences of source in line into source.

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.