mirror of
https://github.com/hanzoai/handlebars.js.git
synced 2026-09-24 16:59:42 +00:00
11 lines
319 B
JavaScript
Executable File
11 lines
319 B
JavaScript
Executable File
import assert from 'assert';
|
|
import Handlebars from 'handlebars';
|
|
|
|
console.log('Testing built Handlebars with Node version ' + process.version);
|
|
|
|
var template = Handlebars.compile('Author: {{author}}');
|
|
var output = template({ author: 'Yehuda' });
|
|
assert.strictEqual(output, 'Author: Yehuda');
|
|
|
|
console.log('Success');
|