Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

269
Views
Using javascript templates with Flask

I am building a web app using flask. I am trying to utilize Algolia's instant search widgets, but they utilize html templating that is very similar to that used by flask. Is there any way i can tell flask to ignore the brackets within my javascript? Or possibly some other solution I haven't thought of?

  const hits = instantsearch.widgets.hits({
container: '#hits',
templates: {
  item: `
    <h2>
      {{#helpers.highlight}}{ "attribute": "name" }{{/helpers.highlight}}
    </h2>
    <p>{{ description }}</p>
  `,
},

});

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!