Top "Mustache" questions

Mustache is a "logic-less" templating language available in a range of languages.

How do I accomplish an if/else in mustache.js?

It seems rather odd that I can't figure how to do this in mustache. Is it supported? This is my …

javascript templates mustache
What are the differences between Mustache.js and Handlebars.js?

Major differences I've seen are: Handlebars adds #if, #unless, #with, and #each Handlebars adds helpers Handlebars templates are compiled (Mustache …

handlebars.js mustache client-side-templating templating-engine
jQuery + client-side template = "Syntax error, unrecognized expression"

I just updated jQuery from 1.8.3 to 1.9, and it started crashing all of a sudden. This is my template: <script …

javascript jquery mustache
Handlebars/Mustache - Is there a built in way to loop through the properties of an object?

As the title of question says, is there a mustache/handlebars way of looping through an object properties? So with …

javascript handlebars.js mustache
How to handle an IF STATEMENT in a Mustache template?

I'm using mustache. I'm generating a list of notifications. A notification JSON object looks like: [{"id":1364,"read":true,"author_id":30,"…

javascript templates mustache
Can mustache iterate a top-level array?

My object looks like this: ['foo','bar','baz'] And I want to use a mustache template to produce from it …

javascript mustache
In Mustache, How to get the index of the current Section

I am using Mustache and using the data { "names": [ {"name":"John"}, {"name":"Mary"} ] } My mustache template is: {{#names}} {{name}} {{/names}} …

templates mustache
Handlebars Template rendering template as text

I created a helper in Handlebars to help with logic, but my template parses the returned html as text rather …

javascript template-engine mustache handlebars.js
calling function with arguments in mustache javascript

Is it possible to call a function with arguments with Mustache.js {{somefunction(somevalue)}} thank you

javascript mustache
In Mustache templating is there an elegant way of expressing a comma separated list without the trailing comma?

I am using the Mustache templating library and trying to generate a comma separated list without a trailing comma, e.…

mustache