MCPcopy Create free account
hub / github.com/socketstream/socketstream / newEngine

Function newEngine

test/unit/client/template_engine.test.js:63–72  ·  view source on GitHub ↗
(api,config,options)

Source from the content-addressed store, hash-verified

61 };
62
63 var newEngine = function newEngine(api,config,options) {
64 api.should.equal(ss.api);
65 options.should.equal(ss.client.options);
66 return {
67 name: 'New',
68 process: function (template, path, id) {
69 return '<script id="new-' + id + '" type="text/x-tmpl"><!-- ' + config.comment + ' -->' + template + '</script>';
70 }
71 }
72 };
73
74 newEngine = sinon.spy(newEngine);
75

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected