site.ini [TemplateBridgeSettings]
The block [TemplateBridgeSettings] of settings/site.ini, with 4 setting(s).
CompileIncludeNodeTree[]=final
CompileIncludeNodeTree[]=transformed
CompileIncludeNodeTree[]=static
CompileIncludeNodeTree[]=combined
CompileIncludeNodeTree[]=original
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.
Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/site.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/site.ini.append.phpfor one siteaccess,extension/<extension>/settings/site.ini.append.phpin an extension (read when the extension is active).
ConverterList
Default: a hash of 4: tpl-stpl=expSmartyConverter, stpl-tpl=expSmartyReverseConverter, tpl-twig=expTwigConverter, twig-tpl=expTwigReverseConverter.
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "ConverterList[]" first replaces the shipped list; without it the items are added
ConverterList[]
ConverterList[tpl-stpl]=expSmartyConverter
ConverterList[stpl-tpl]=expSmartyReverseConverter
ConverterList[tpl-twig]=expTwigConverter
ConverterList[twig-tpl]=expTwigReverseConverter
*/ ?>EngineSuffixList
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).
Default: a hash of 3: .stpl=stpl, .twig=twig, .html.twig=twig.
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "EngineSuffixList[]" first replaces the shipped list; without it the items are added
EngineSuffixList[]
EngineSuffixList[.stpl]=stpl
EngineSuffixList[.twig]=twig
EngineSuffixList[.html.twig]=twig
*/ ?>RendererList
Default: a hash of 2: stpl=expSmartyRenderer, twig=expTwigRenderer.
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "RendererList[]" first replaces the shipped list; without it the items are added
RendererList[]
RendererList[stpl]=expSmartyRenderer
RendererList[twig]=expTwigRenderer
*/ ?>ParameterOperatorList
Operators without template hints that read their parameters only, never their input,
for every engine (smarty.ini and twig.ini ParameterOperatorList[] are read too).
Default: an empty list.
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "ParameterOperatorList[]" first replaces the shipped list; without it the items are added
ParameterOperatorList[]
*/ ?>Related
Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.