1 | /**
|
2 | * @function _bud
|
3 | */
|
4 |
|
5 |
|
6 |
|
7 | function _bud (tmpl, params, mode, force) {
|
8 | return {
|
9 | force,
|
10 | mode,
|
11 | tmpl: tmpl,
|
12 | data: {
|
13 | year: params.year || new Date().getFullYear(),
|
14 | params,
|
15 | generator: 'apeman-tmpl',
|
16 | today: new Date().toLocaleDateString(),
|
17 | pkg: require('../package.json'),
|
18 | _render: __dirname + '/../asset/_render.hbs'
|
19 | }
|
20 | }
|
21 | }
|
22 |
|
23 | module.exports = _bud;
|