Mustache.js should be able to handle/display empty string

 {{#Version}} Product Version={{{Version}}}{{Version}}

I am completely new to mustache.js, apologies if the question is not clear.

In the above line i am able to get Product Version if the version is not empty but i also wanted to be able to get Product Version even when Version is empty.

Mustache will drop ‘Product Version’ from the output if Version is empty.

Product Version =''

123 thoughts on “Mustache.js should be able to handle/display empty string”

Leave a Comment