feature: plugin API, working on #86

This commit is contained in:
harttle
2019-01-21 15:24:13 +08:00
parent 9ba352ef04
commit dee4303fad
3 changed files with 40 additions and 0 deletions
+3
View File
@@ -75,6 +75,9 @@ const _engine = {
registerTag: function (name, tag) {
return this.tag.register(name, tag)
},
plugin: function (plugin) {
return plugin.call(this, Liquid)
},
express: function (opts) {
opts = opts || {}
const self = this