# How can I use the Handlebars template to operate the template, which defaults to the mustache template

**URL:** <https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955>\
**Category:** General\
**Created:** [26 June 2024 04:24 UTC](https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955 "2024-06-26T04:24:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yooadmin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yooadmin/32/91985_2.png) [@yooadmin](https://discourse.nodered.org/u/yooadmin)\
**Post date:** [26 June 2024 04:24 UTC](https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955/1 "2024-06-26T04:24:41Z")

</div>

How can I use the Handlebars template to operate the template, which defaults to the mustache template

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [26 June 2024 04:50 UTC](https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955/2 "2024-06-26T04:50:44Z")

</div>

Could you explain what you are trying to achieve ?  
Node-RED afaik only has mustache support.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [27 June 2024 00:28 UTC](https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955/3 "2024-06-27T00:28:24Z")

</div>

Apparently "Handlebars is largely compatible with Mustache templates"

---

<div class="post-metadata">

**Author:** ![rmpasswd](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rmpasswd/32/93661_2.png) [@rmpasswd](https://discourse.nodered.org/u/rmpasswd)\
**Post date:** [19 August 2024 06:00 UTC](https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955/4 "2024-08-19T06:00:41Z")

</div>

just for future reference:

Gemini AI gave me this, but this do not translate/interpret to the UI.

```auto
<ul>
    {{#each msg.payload}}
        <li>{{this.name}}</li>
    {{/each}}
</ul>

```

Alterately I used Angular feature of _ng-repeat_ like this:

```auto
<h4> Legend: </h4>
<font ng-repeat="item in msg.payload">
    <b> 
        {{item.name}} </br>
    </b>
</font>
</div>

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 November 2024 06:01 UTC](https://discourse.nodered.org/t/how-can-i-use-the-handlebars-template-to-operate-the-template-which-defaults-to-the-mustache-template/88955/5 "2024-11-17T06:01:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
