duck.html.components.utils.include

Module containing function for including bulk HTML components in a module.

Module Contents

Functions

components_include

This looks up HTML components in the provided modules and returns a dictionary containing the components found.

Data

BASE_MODULE

BUILTIN_COMPONENTS

API

duck.html.components.utils.include.BASE_MODULE

‘duck.html.components’

duck.html.components.utils.include.BUILTIN_COMPONENTS

None

duck.html.components.utils.include.components_include(modules: List[str]) Dict[str, str][source]

This looks up HTML components in the provided modules and returns a dictionary containing the components found.

Parameters:

modules – The list of module names containing HTML components in PascalCase.

Returns:

A dictionary mapping component names to their full module path.

Return type:

Dict[str, str]