2 ms·
I don't understand the idea that mustache is logicless. Why is something that shows a message "only if person has a truthy value": {{#person}} Hi {{name
by riffraff 15y ago
I don't understand the idea that mustache is logicless.
Why is something that shows a message "only if person has a truthy value":
{{#person}}
Hi {{name}}!
{{/person}}
different from an `if` (except it becomes a `for` depending on the value of the argument)?
As long as you use values consistently it is never the case that a single person object referred by a variable "person" transforms into a set of people.