The Mustache template language is explicitly as logic-less as possible.
However, you can use the section construct to do what you want. Add booleans for pending, ok and done to your object, then do:
{{#pending}}
// show pending
{{/pending}}
{{#ok}}
// show ok
{{/ok}}
{{#done}}
// show done
{{/done}}
This in effect moves the comparison logic to your actual code, which means the template can stay logic-less.
(You mentioned handlebars.js in your tags. If you're using Handlebars, you could theoretically extend the language by doing something like this, but that kind of goes against the idea of using a logic-less template language. You could even grab a collection of extensions, but by then I'd recommend going for another template language altogether.)