Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
text/template: Functions are evaluated immediately and #16125
Please answer these questions before submitting your issue. Thanks!
It seems like
That's how template functions work. When they appear by name, they are invoked. They can't be passed as values within templates.
You can, however, pass the function as data, as you can see in this edited version of your first example: