-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
49 lines (41 loc) · 1.07 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// April 1
// main module
'use strict';
var tempBuild = require ('./modules/templates/build');
var tempOutput = require ('./modules/templates/output');
var tempSpec = require ('./modules/templates/spec');
var consumer = require ('./modules/consumer');
var defaults = require ('./modules/defaults');
var dispatch = require ('./modules/dispatch');
var output = require ('./modules/output');
var params = require ('./modules/params');
var spec = require ('./modules/spec');
var template = require ('./modules/template');
var types = require ('./modules/types');
module.exports = {
// modules
modules: {
templates: {
build: tempBuild,
output: tempOutput,
spec: tempSpec
},
consumer: consumer,
defaults: defaults,
dispatch: dispatch,
output: output,
parameterizer: params,
spec: spec,
template: template,
types: types
},
// external interface
// spec node builders
insert: tempSpec.insertNode,
list: tempSpec.listNode,
macro: spec.macro,
// operation functions
params: params.params,
string: template.doBuildString,
template: template.doBuildTemplate
};