UNPKG
egg-view-xtpl
Version:
latest (1.2.0)
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.0.1
egg view plugin for xtemplate
github.com/eggjs/egg-view-xtpl
eggjs/egg-view-xtpl
egg-view-xtpl
/
app
/
extend
/
application.js
19 lines
(15 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict'
;
const
XTPL
=
Symbol
(
'app#xtpl'
);
const
engine =
require
(
'../../lib/engine'
);
module
.
exports
= {
/** * xtpl instance *
@member
{
xtpl
} Application#xtpl */
get
xtpl
() {
if
(!
this
[
XTPL
]) {
this
[
XTPL
] =
engine
(
this
); }
return
this
[
XTPL
]; }, };