File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515The ` 2.x ` major version introduces several backwards compatibility breaks. The amount of required manual update steps
1616depends on how many features were used. The following list _ should_ cover the most important changes:
1717
18+ * Your template engine must support the ` 2.x ` version. Check the available template engines in the [ readme] ( README.md#available-template-engines ) .
1819* The API variable ` $factory ` is no longer available. Use ` $modules->get('TemplateEngineFactory') ` to get an instance of
1920the ` \ProcessWire\TemplateEngineFactory ` class.
2021* The factory has a new configuration ` templates_path ` , indicating where the engine's templates are stored. This config
Original file line number Diff line number Diff line change 11# Template Engine Factory
22
3- [ ![ Build Status] ( https://travis-ci.org/wanze/TemplateEngineFactory.svg?branch=next )] ( https://travis-ci.org/wanze/TemplateEngineFactory )
4- [ ![ StyleCI] ( https://github.styleci.io/repos/21270731/shield?branch=next )] ( https://github.styleci.io/repos/21270731 )
3+ [ ![ Build Status] ( https://travis-ci.org/wanze/TemplateEngineFactory.svg?branch=master )] ( https://travis-ci.org/wanze/TemplateEngineFactory )
4+ [ ![ StyleCI] ( https://github.styleci.io/repos/21270731/shield?branch=master )] ( https://github.styleci.io/repos/21270731 )
55[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://opensource.org/licenses/MIT )
66[ ![ ProcessWire 3] ( https://img.shields.io/badge/ProcessWire-3.x-orange.svg )] ( https://github.com/processwire/processwire )
77
@@ -14,7 +14,7 @@ via template engine and encourages to separate logic from markup by implementing
1414> Version ` 2.x ` of this module differs from the ` 1.x ` version in many ways. Modules providing template engines _ must_ be
1515 installed with Composer. Twig is currently the only template engine implemented for the ` 2.x ` major version. Please
1616take a look at the [ update guide] ( DOCUMENTATION.md#updating-from-1x-to-2x ) , as the new version introduces backwards
17- compatibility breaks.
17+ compatibility breaks. The ` 1.x ` version of the module is available on the [ 1.x branch ] ( https://github.com/wanze/TemplateEngineFactory/tree/1.x ) .
1818
1919## Requirements
2020
You can’t perform that action at this time.
0 commit comments