UNPKG

ape-tmpl

Version:
21 lines (16 loc) 387 B
/** * Resolve template file path. * @memberof module:ape-tmp/lib * @function _tmpl * @private * @param {string} name - Template name. * @returns {string} - Resolved path. */ 'use strict' const path = require('path') const TMPL_DIR = path.resolve(__dirname, '../asset') /** @lends _tmpl */ function _tmpl (name) { return path.resolve(TMPL_DIR, name) } module.exports = _tmpl