Matheus Oliveira Matheus Oliveira - 1 month ago 11
Twig Question

How to add space between variables in twig template?

It's a pretty simple question, but I didn't find the answer yet.

This code:

{{ civilite }}{{ nom }}{{ prenom }}


Prints MRJOHSONBarry

I want to add space between the variables, how could I do it?

Answer

If {{ civilite }} {{ nom }} {{ prenom }} doesn't work...

how about

{{ civilite }} {{ nom }} {{ prenom }}?
Comments