mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
374 B
JavaScript
16 lines
374 B
JavaScript
var nodePath = require("path");
|
|
|
|
exports.check = function (marko, markoCompiler, expect, snapshot, done) {
|
|
var template = marko.load(nodePath.join(__dirname, "template.marko"));
|
|
var data = {
|
|
name: "John",
|
|
$global: {
|
|
greeting: "Greetings",
|
|
},
|
|
};
|
|
template.render(data, function (error, result) {
|
|
snapshot(result.toString());
|
|
done();
|
|
});
|
|
};
|