1 | /**
|
2 | * Resolve template file path.
|
3 | * @memberof module:ape-tmp/lib
|
4 | * @function _tmpl
|
5 | * @private
|
6 | * @param {string} name - Template name.
|
7 | * @returns {string} - Resolved path.
|
8 | */
|
9 |
|
10 |
|
11 |
|
12 | const path = require('path')
|
13 | const TMPL_DIR = path.resolve(__dirname, '../asset')
|
14 |
|
15 | /** @lends _tmpl */
|
16 | function _tmpl (name) {
|
17 | return path.resolve(TMPL_DIR, name)
|
18 | }
|
19 |
|
20 | module.exports = _tmpl
|