diff options
Diffstat (limited to 'tex/context/base/file-mod.lua')
-rw-r--r-- | tex/context/base/file-mod.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tex/context/base/file-mod.lua b/tex/context/base/file-mod.lua index 4a520e998..cfc60cfb7 100644 --- a/tex/context/base/file-mod.lua +++ b/tex/context/base/file-mod.lua @@ -28,6 +28,7 @@ commands = commands or { } local commands = commands local findbyscheme = resolvers.finders.byscheme -- use different one +local iterator = utilities.parsers.iterator -- modules can have a specific suffix or can specify one @@ -168,3 +169,9 @@ function commands.doifolderversionelse(one,two) -- one >= two two = (two[1] or 0) * 10000 + (two[2] or 0) * 100 + (two[3] or 0) commands.doifelse(one>=two) end + +function commands.useluamodule(list) + for filename in iterator(list) do + environment.loadluafile(filename) + end +end |