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