diff options
Diffstat (limited to 'xmake/core/base/template.lua')
| -rw-r--r-- | xmake/core/base/template.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/base/template.lua b/xmake/core/base/template.lua index ab2f400dc..19e347e20 100644 --- a/xmake/core/base/template.lua +++ b/xmake/core/base/template.lua @@ -30,6 +30,7 @@ local path = require("base/path") local table = require("base/table") local utils = require("base/utils") local string = require("base/string") +local filter = require("base/filter") local interpreter = require("base/interpreter") -- get interpreter @@ -205,7 +206,7 @@ function template.create(language, templateid, targetname) assert(interp) -- set filter - interp:filter_set(function (variable) + interp:filter_set(filter.init(function (variable) -- replace targetname if variable == "targetname" then @@ -218,7 +219,7 @@ function template.create(language, templateid, targetname) -- ok? return variable - end) + end)) -- load all templates for the given language local templates = template.loadall(language) |
