Module document.documentregistry

This is a registry for document providers

Functions

DocumentRegistry:hasProvider (file) Returns true if file has provider.
DocumentRegistry:getProvider (file) Returns the preferred registered document handler.
DocumentRegistry:getProviders (file) Returns the registered document handlers.
DocumentRegistry:getExtensions () Get mapping of file extensions to providers
DocumentRegistry:setProvider (file, all) Sets the preferred registered document handler.

Issues

DocumentRegistry:getProviders-todo6 some implementation based on mime types?


Functions

DocumentRegistry:hasProvider (file)
Returns true if file has provider.

Parameters:

Returns:

    boolean
DocumentRegistry:getProvider (file)
Returns the preferred registered document handler.

Parameters:

Returns:

    table provider, or nil
DocumentRegistry:getProviders (file)
Returns the registered document handlers.

Parameters:

Returns:

    table providers, or nil
DocumentRegistry:getExtensions ()
Get mapping of file extensions to providers

Returns:

    table mapping file extensions to a list of providers
DocumentRegistry:setProvider (file, all)
Sets the preferred registered document handler.

Parameters:

Issues

DocumentRegistry:getProviders-todo6
some implementation based on mime types?
generated by LDoc 1.4.6 Last updated 2020-09-22 05:26:21