UNPKG

387 BJavaScriptView Raw
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'use strict'
11
12const path = require('path')
13const TMPL_DIR = path.resolve(__dirname, '../asset')
14
15/** @lends _tmpl */
16function _tmpl (name) {
17 return path.resolve(TMPL_DIR, name)
18}
19
20module.exports = _tmpl