NVelocity & calling functions
Pass to NVelocity:
And in your template you can then use your function:
Of course, nowadays, we’d tend to use Razor for templating. But this could be useful for your legacy projects or if you still have a soft spot for NVelocity.