# Autocomplete still using Raw Templates

**URL:** https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904
**Category:** Development
**Created:** [January 24, 2025, 9:26pm UTC](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904 "2025-01-24T21:26:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [January 24, 2025, 9:26pm UTC](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904/1 "2025-01-24T21:26:25Z")

</div>

e.g.

> <https://github.com/discourse/discourse/blob/4c1c4ba8d42db4d1c732af69c39740d2aee91410/app/assets/javascripts/discourse/app/components/group-selector.js#L63C5-L63C64>

> **[Build software better, together](https://github.com/search?q=repo%3Adiscourse%2Fdiscourse%20findRawTemplate%20&type=code)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

Had the impression Raw Templates were going away. Will their use here be curtailed too?

What is the plan for this control scheme, and is there an example of a state-of-the-art modern version that I can look at?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [January 24, 2025, 10:08pm UTC](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904/2 "2025-01-24T22:08:19Z")

</div>

Good question! I was wondering the same when working with the emojis. The autocomplete feature is also still relying on a jQuery plugin. I was not able to find an alternative to findRawTemplate.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [April 4, 2025, 1:37pm UTC](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904/4 "2025-04-04T13:37:44Z")

</div>

We are planning to replace the JQuery-based autocomplete implementation in the near future. But for now, in order to unblock the removal of the raw-handlebars compilation pipeline, we’re replacing the autocomplete `.hbr` templates with vanilla JS.

Here’s the core PR:

[https://github.com/discourse/discourse/pull/31957](https://github.com/discourse/discourse/pull/31957)

and similar ones for some third-party plugins:

- [DEV: Drop dependency on raw-hbs templates by davidtaylorhq · Pull Request #127 · merefield/discourse-locations · GitHub](https://github.com/merefield/discourse-locations/pull/127)
- [DEV: Remove Handlebars dependency by davidtaylorhq · Pull Request #299 · paviliondev/discourse-custom-wizard · GitHub](https://github.com/paviliondev/discourse-custom-wizard/pull/299)

Admittedly it would’ve been much better if we’d deprecated these things a few months ago. But, I’ve searched `all-the-*` and haven’t found any other people who were depending on this, so we’re planning to push forward with the removal in core next week.

[https://github.com/discourse/discourse/pull/32081](https://github.com/discourse/discourse/pull/32081)

If anyone else runs into any problems, please feel free to post here and we’ll be happy to help.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [April 4, 2025, 1:39pm UTC](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904/5 "2025-04-04T13:39:27Z")

</div>

oooh, thanks for response _and_ a PR David, very much appreciated! 😍
