summaryrefslogtreecommitdiff
path: root/tex/context/base/data-inp.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-12-01 17:00:20 +0200
committerMarius <mariausol@gmail.com>2010-12-01 17:00:20 +0200
commit7ddd9fa6ca5b953fe385fa7ad464a408006bb993 (patch)
tree51f21910916292bfdc460ac076ef618ad79cb6b9 /tex/context/base/data-inp.lua
parent43b3007b67e55a65c5853402b973b82352a795b0 (diff)
downloadcontext-7ddd9fa6ca5b953fe385fa7ad464a408006bb993.tar.gz
beta 2010.12.01 15:28
Diffstat (limited to 'tex/context/base/data-inp.lua')
-rw-r--r--tex/context/base/data-inp.lua20
1 files changed, 15 insertions, 5 deletions
diff --git a/tex/context/base/data-inp.lua b/tex/context/base/data-inp.lua
index b3e30a6c6..97fb8904b 100644
--- a/tex/context/base/data-inp.lua
+++ b/tex/context/base/data-inp.lua
@@ -6,10 +6,20 @@ if not modules then modules = { } end modules ['data-inp'] = {
license = "see context related readme files"
}
-local allocate = utilities.storage.allocate
-
+local allocate = utilities.storage.allocate
local resolvers = resolvers
-resolvers.finders = allocate { notfound = { nil } }
-resolvers.openers = allocate { notfound = { nil } }
-resolvers.loaders = allocate { notfound = { false, nil, 0 } }
+local methodhandler = resolvers.methodhandler
+local registermethod = resolvers.registermethod
+
+local finders = allocate { helpers = { }, notfound = function() end }
+local openers = allocate { helpers = { }, notfound = function() end }
+local loaders = allocate { helpers = { }, notfound = function() return false, nil, 0 end }
+
+registermethod("finders", finders, "uri")
+registermethod("openers", openers, "uri")
+registermethod("loaders", loaders, "uri")
+
+resolvers.finders = finders
+resolvers.openers = openers
+resolvers.loaders = loaders