Is there any way to create a Go (or js) function that can be called by the template at processing stage?
I was trying to create an HTML list of pages by an order not covered in the template language (in other words not by weight, etc).
Plus working with Hugo templates and {{ range }} has made me see the logic to logic-less templates. That is, why not be able too do something that is common in mainstream languages because the one available is a limited templating language?
As I understand it, Handlebars works by being able to calll functions and variables, but not manipulate within the templatee. Although at first I thought this was adding uneccesary layers, I now see it also allows full acccess to a mainstream language (without limitations) acccesible by the template.
Any way to do this or something similar in Hugo? I’d need to learn Go, but i think the time spent there is better than the odd work-arounds I’m finding I’m doing coding within the templates.