Answer the question
In order to leave comments, you need to log in
Why do template engines use double curly braces?
Why do template engines use double, triple or even quadruple curly braces and not just single ones?
Does anyone know the real reason?
Answer the question
In order to leave comments, you need to log in
In my opinion, the reason is obvious - single brackets will conflict, for example, with JS.
and double openings are hardly used anywhere. it happens that template engines conflict (for example, symfony2 and in angularJS). In this case, for example, Angular supports setting arbitrary characters for templating engines.
Suddenly, because single curly braces have a special meaning in many programming languages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question