diff options
| author | ruki <[email protected]> | 2019-09-19 00:49:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-18 22:57:25 +0800 |
| commit | bb3455b845e0b776937283b3ddae4ae557eea52e (patch) | |
| tree | 7625b08ec58620e048410017bfe18ff3fa536548 /xmake/actions/create/xmake.lua | |
| parent | 916078fdb2904340ef2003a46057d9232194511a (diff) | |
improve template
Diffstat (limited to 'xmake/actions/create/xmake.lua')
| -rw-r--r-- | xmake/actions/create/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/create/xmake.lua b/xmake/actions/create/xmake.lua index dee04b4b8..26157adc9 100644 --- a/xmake/actions/create/xmake.lua +++ b/xmake/actions/create/xmake.lua @@ -68,8 +68,8 @@ task("create") local templates = {} for _, l in ipairs(template.languages()) do for _, t in ipairs(template.templates(l)) do - templates[t.name] = templates[t.name] or {} - table.insert(templates[t.name], l) + templates[t:name()] = templates[t:name()] or {} + table.insert(templates[t:name()], l) end end |
