[TemplateBridgeSettings]
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The converters of exp:template:convert (lib/templatebridge/classes/exptemplatedesignconverter.php): ConverterList[<from>-<to>]=<class> converts one template text from one engine to another. Engines: tpl (Exponential templates, .tpl), stpl (Smarty templates, .stpl), twig (Twig templates, .twig and .html.twig). The class takes an eZTemplate in its constructor and has convert( $text, $name ) and warnings(). An extension adds a direction with its own ConverterList[] entry.
File
settings/site.ini; override it in settings/override/site.ini.append.php, in a siteaccess or in an extension.
Settings
| Setting | Default | Description |
|---|---|---|
| ConverterList[<key>] | tpl-stpl=expSmartyConverter; stpl-tpl=expSmartyReverseConverter; tpl-twig=expTwigConverter; twig-tpl=expTwigReverseConverter | |
| EngineSuffixList[<key>] | .stpl=stpl; .twig=twig; .html.twig=twig | Template files of other engines, by file ending (the longest ending matches first): EngineSuffixList[<ending>]=<engine>. The template system parses such a file as the stub of the engine's renderer, RendererList[<engine>]=<class> (expTemplateEngines). |
| RendererList[<key>] | stpl=expSmartyRenderer; twig=expTwigRenderer | |
| ParameterOperatorList[] | (empty array) | Operators without template hints that read their parameters only, never their input, for every engine (smarty.ini and twig.ini ParameterOperatorList[] are read too). |
See also
Generated example: site.ini [TemplateBridgeSettings]
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/site.ini.
Contributors
- Graham Brookins Updated
Comments
Add a comment