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

Function newEngine

test/unit/client/constants.test.js:28–37  ·  view source on GitHub ↗
(api,config,options)

Source from the content-addressed store, hash-verified

26 });
27
28 var newEngine = function newEngine(api,config,options) {
29 api.should.equal(ss.api);
30 options.should.equal(ss.client.options);
31 return {
32 name: 'New',
33 process: function (template, path, id, opts) {
34 return '<script id="new-' + id + '" type="text/x-tmpl">' + template + JSON.stringify(opts.constants) + '</script>';
35 }
36 }
37 };
38
39 it('should be available in template engine formatters', function(done) {
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected