I want to display tuple data in a django template.
I want to use a syntax like the Python formated string :
print("I have %d referrers and %f cashbacks" % request.user.get_referrer_data())
In this case, request.user.get_referrer_data() is an expensive method, so I want called it only once in my template (despite the fact that I cache its result).
Do you know a template syntax that let me inject a tuple in a string ?
A code like that would be great :
{{ "I have %d referrers and %f cashbacks" | formated_string request.user.get_referrer_data() }}