betty.project.extension.cotton_candy package

Submodules

Module contents

Provide the Cotton Candy theme.

final class betty.project.extension.cotton_candy.CottonCandy[source]

Bases: ShorthandPluginBase, Theme, ConfigurableExtension[CottonCandyConfiguration], Jinja2Provider, EntryPointProvider

The Cotton Candy theme.

static __new__(*args, **kwargs)
classmethod assets_directory_path() Path[source]

Return the path on disk where the extension’s assets are located.

This may be anywhere in your Python package.

async bootstrap() None[source]

Bootstrap the component.

classmethod comes_before() set[PluginIdentifier[Extension]][source]

Get the plugins that this plugin comes before.

The returned plugins come after this plugin.

classmethod depends_on() set[PluginIdentifier[Extension]][source]

The plugins this one depends on.

property filters: Mapping[str, Callable[[...], Any]]

Jinja2 filters provided by this extension.

Keys are filter names, and values are the filters themselves.

classmethod new_default_configuration() CottonCandyConfiguration[source]

Create this extension’s default configuration.

register_event_handlers(registry: EventHandlerRegistry) None[source]

Register event handlers with the project.

webpack_entry_point_cache_keys() Sequence[str][source]

Get the keys that make a Webpack build for this provider unique.

Providers that can be cached regardless may return ().

classmethod webpack_entry_point_directory_path() Path[source]

Get the path to the directory with the entry point assets.

The directory must include at least a package.json and main.ts.