@zenweb/template 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/render.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
package/dist/render.js
CHANGED
|
@@ -10,7 +10,8 @@ class TemplateRender {
|
|
|
10
10
|
}
|
|
11
11
|
match(ctx) {
|
|
12
12
|
const opt = ctx[exports.TEMPLATE_OPTION];
|
|
13
|
-
|
|
13
|
+
// 匹配引擎, 如果不设置引擎则直接匹配
|
|
14
|
+
if (opt && (!opt.engine || opt.engine === this._option.engineName)) {
|
|
14
15
|
(0, utils_1.debug)('matchEngine: %o', this._option.engineName);
|
|
15
16
|
return true;
|
|
16
17
|
}
|