git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / jade / jade.js

398 bytesRaw
1'use strict';
2
3// see also express.js
4
5var file =
6'html\n' +
7' head\n' +
8' title!= title\n' +
9' body\n' +
10' h1!= message\n';
11
12var jade = require('jade');
13var fn = jade.compile(file, {});
14var html = fn({ title: 'Hey', message: 'Hello there!' });
15
16if (html === '<html><head><title>Hey</title></head>' +
17 '<body><h1>Hello there!</h1></body></html>') {
18 console.log('ok');
19}
20

Built with git-ssb-web