mirror of
https://github.com/marko-js/marko.git
synced 2026-01-18 14:55:13 +00:00
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
var nodePath = require('path');
|
|
|
|
exports.check = function (marko, markoCompiler, expect, helpers, done) {
|
|
var templatePath = nodePath.join(__dirname, 'template.marko');
|
|
var template = require(templatePath);
|
|
template.render({
|
|
name: 'John'
|
|
}, function (err, result) {
|
|
if (err) {
|
|
return done(err);
|
|
}
|
|
|
|
helpers.compare(result.toString());
|
|
done();
|
|
});
|
|
}; |