There are lots of examples about regarding how to correctly do JSLINK stuff, and I’ve nicked ideas from all of them.

I’ve not been happy with any of them and I still wonder about mine, but this is the best I’ve come up with.

It’s MDS compliant, in includes a routine to automatically assign a view to allow multiple JSLinks on a page and apply the same jslink on diff parts if required.

Its written in a module.

It’s a work in progress, it will evolve but I reckon I’m as far as I can get in this evolution.

Bits taken from Wictor Wilén, Martin Hatch, Paul Cimares.