ModuleRegistry

Overview

ModuleRegistry is a class in Aspose.Html FOSS for Python.

Maps module specifiers to ES module source strings.

This class provides 3 methods for working with ModuleRegistry objects in Python programs. Available methods include: __init__, register, resolve. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.

Methods

SignatureDescription
__init__()Calls init on this ModuleRegistry instance.
register(specifier: str, source: str)Register source under specifier.
resolve(specifier: str)str | NoneReturn the registered source for specifier, or None.

See Also