git ssb

0+

cel-desktop / ssb-pkg



Tree: 8f4b43a09aab9801bf28987edd59c2e366180327

Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / ejs / ejs.js

285 bytesRaw
1'use strict';
2
3var ejs = require('ejs');
4
5var s = '<% if (user) { %>' +
6 '<h2><%= user.name %></h2>' +
7 '<% } %>';
8
9var template = ejs.compile(s, { client: true });
10var out = template({ user: { name: 'klopov' } });
11if (out === '<h2>klopov</h2>') {
12 console.log('ok');
13}
14

Built with git-ssb-web