template.render(current_user=current_user, thread=thread, messages=messages)
Is there a dont-repeat-yourself compliant way to do whatever=whatever? Like a magic symbol to prepend the variable name with or something like this ~whatever, ~something, ~etc?
No, there is not.
For what it’s worth, you can create a dictionary with your parameters and pass it with:
Note: You should always favor readability!