templates: {
suggestion: Handlebars.compile(
"<div>" +
"{{place_name}}, {{admin_name1}}, {{postal_code}}" +
"</div>"
)
}
In my search function if I have the q value in brackets return jsonify([q])
the search box suggests only ",,". But if I remove the brackets return jsonify(q)
the search box works perfectly. Why is that, and how should I edit the configure function if I wanted to use return jsonify([q])
?