Add a class in Nunjucks using a conditional statement
In Nunjucks we can use a conditional statement in two ways:
explicit using the {% if %} keyword,
or implicit using the {{ }} expression.
Note: I did not find any reference about these names – implicit/explicit – in the Nunjucks official documentati...
giuliachiola.hashnode.dev3 min read