I have a jQuery code of datatable. I am trying to insert a button in the last column.
columnDef: targets[-1], render :function (data,type, row,meta) {return `{{${edit_button(row.id)}}}`}
edit_button is a macro that consist code for a button element.
This code is throwing error $ is undefined.
Kindly give me a way to render Jinja template from jQuery datatable.