diff options
| author | ruki <[email protected]> | 2018-12-15 00:41:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-14 22:09:54 +0800 |
| commit | 95f46b973794b37ccd62edbcc3bfb010b0f23dcc (patch) | |
| tree | abbd878e0e78c0511c7da072ad43b70f03eeea47 /xmake/core/project/template.lua | |
| parent | 107f81a48da61d37ecbffac4e2f816b9cfedb21c (diff) | |
improve interpreter
Diffstat (limited to 'xmake/core/project/template.lua')
| -rw-r--r-- | xmake/core/project/template.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/project/template.lua b/xmake/core/project/template.lua index c21e5c869..bd140a024 100644 --- a/xmake/core/project/template.lua +++ b/xmake/core/project/template.lua @@ -144,8 +144,14 @@ function template.templates(language) -- load template for _, templatefile in ipairs(templatefiles) do + -- load script + local ok, errors = interp:load(templatefile) + if not ok then + os.raise(errors) + end + -- load templates - local results, errors = interp:load(templatefile, nil, true, true) + local results, errors = interp:make(nil, true, true) if not results then -- trace os.raise(errors) |
