can you please pass the result of the function call as a parameter to the template?

Most probably applies to other places as well - please adopt - thx