change syntax with latte 3.x
- albertomarpali
- Member | 2
hello,
is there a way to set default syntax mode to {{}} (double)? May be there is some configuration option?
in latte 2.x was $tpl->getParser()->defaultSyntax = ‘double’ but now does not work
thank you
Last edited by albertomarpali (2024-11-15 19:01)
- nightfish
- Member | 518
@albertomarpali Method setSyntax()
exists in TemplateLexer
So if you are able to access TemplateParser, call
$templateParser->getLexer()->setSyntax(...)
and you should be
good to go.