Updating js plugins
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import assert from 'assert';
|
||||
import mustache from 'mustache/mustache.mjs';
|
||||
|
||||
const view = {
|
||||
title: 'Joe',
|
||||
calc: () => 2 + 4
|
||||
};
|
||||
|
||||
assert.strictEqual(
|
||||
mustache.render('{{title}} spends {{calc}}', view),
|
||||
'Joe spends 6'
|
||||
);
|
||||
Reference in New Issue
Block a user