Helper functions with JSrender
Is it possible to use Result Template Helpers https://developers.coveo.com/display/JsSearch/Result+Template+Helpers with JS-render engine ?
I try to use it like this :
but I have the following error :
Error: undefined is not a function.
Any ideas ? Thx
Took me a while to figure this out, but try loading the jsrender library after the Coveo.Dependencies file but before CoveoJsSearch. JsRender needs jQuery (which is in .Dependencies), but must be loaded before our main runtime in order for the template helpers to be registered (I'll clarify this in the doc).