diff options
| author | ruki <[email protected]> | 2017-05-25 10:34:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-25 10:34:33 +0800 |
| commit | 79f3d173f193de0e30a4b57e903abe184b170082 (patch) | |
| tree | 6647a80e82327ba21cc2c1dfaa9f01b54eabf742 /xmake/core/project/template.lua | |
| parent | 1c48d7c8a0d5646c8452fb3ee1f08eb68fe7311d (diff) | |
fix interpreter bug when parsing multi-level subdirs
Diffstat (limited to 'xmake/core/project/template.lua')
| -rw-r--r-- | xmake/core/project/template.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/core/project/template.lua b/xmake/core/project/template.lua index 91ce420bc..6c61931f9 100644 --- a/xmake/core/project/template.lua +++ b/xmake/core/project/template.lua @@ -32,7 +32,6 @@ 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 option = require("base/option") local sandbox = require("sandbox/sandbox") local project = require("project/project") @@ -192,7 +191,7 @@ function template.create(language, templateid, targetname) local projectdir = path.absolute(option.get("project") or path.join(os.curdir(), targetname)) -- set filter - interp:filter_set(filter.new(function (variable) + interp:filter():register("template", function (variable) -- init maps local maps = @@ -210,7 +209,7 @@ function template.create(language, templateid, targetname) -- ok? return variable - end)) + end) -- load all templates for the given language local templates = template.templates(language) |
