What´s the Latte way for sprintf()

ando
Member | 4
+
0
-

Is there a “Latte way” for doing something like this?

echo sprintf('nr %d of %d', $nr, $total);

Like in twig:
https://twig.symfony.com/…/format.html

ando
Member | 4
+
0
-

I don´t see how that is the same as twig´s “format”
It´s only for formatting numbers

jiri.pudil
Nette Blogger | 1032
+
+3
-

Well, I guess “Latte way” would be to write it directly in Latte :)

nr {$nr} of {$total}

afaik there is no built-in filter for this, but you can write your own as a simple wrapper over sprintf