3 ms·
Sad to say, Mustache.js has exactly this bug last time I checked, but only under some circumstances. Minimal reproduction: Mustache.to_html('{{b}}', {
by kragen 15y ago
Sad to say, Mustache.js has exactly this bug last time I checked, but only under some circumstances.
Minimal reproduction:
Mustache.to_html('{{b}}', {b: '{{c}x}' }) -> '{{c}x}'
Mustache.to_html('{{#a}}{{b}}{{/a}}', {a: [{b: '{{c}x}' }]}) -> '{{c}x}'
Mustache.to_html('{{b}}', {b: '{{c}}' }) -> '{{c}}'
Mustache.to_html('{{#a}}{{b}}{{/a}}', {a: [{b: '{{c}}' }]}) -> '' (wrong)