UNPKG
tom-framework
Version:
latest (0.1.1)
0.1.1
0.1.0
tom-framework for Node.js
github.com/tomgjm/tom-framework
tom-framework
/
configs
/
views.js
9 lines
(8 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
{ join } =
require
(
'path'
);
const
appDir =
require
(
'tomjs/handlers/dir'
)();
module
.
exports
= {
path
:
join
(appDir, (process.
env
.
VIEWS_PATH
||
'views'
)),
//视图模板目录
extension
: process.
env
.
VIEWS_PATH
||
'swig'
,
options
: {},
map
: {
'swig'
:
'swig'
}, };