summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/penlight/pl/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/generic/penlight/pl/init.lua')
-rw-r--r--macros/luatex/generic/penlight/pl/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/macros/luatex/generic/penlight/pl/init.lua b/macros/luatex/generic/penlight/pl/init.lua
new file mode 100644
index 0000000000..c27a890b56
--- /dev/null
+++ b/macros/luatex/generic/penlight/pl/init.lua
@@ -0,0 +1,11 @@
+--------------
+-- Entry point for loading all PL libraries only on demand, into the global space.
+-- Requiring 'pl' means that whenever a module is implicitly accesssed
+-- (e.g. `utils.split`)
+-- then that module is dynamically loaded. The submodules are all brought into
+-- the global space.
+--Updated to use @{pl.import_into}
+-- @module pl
+require'pl.import_into'(_G)
+
+if rawget(_G,'PENLIGHT_STRICT') then require 'pl.strict' end