ape-tmpl
Version:
Templates for ape framework.
21 lines (16 loc) • 387 B
JavaScript
/**
* Resolve template file path.
* @memberof module:ape-tmp/lib
* @function _tmpl
* @private
* @param {string} name - Template name.
* @returns {string} - Resolved path.
*/
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