Skip to content

dict-based management for revealjs_script_plugins #178

@attakei

Description

@attakei

What do you need?

Overview

Supporting dict style configuration of revealjs_script_plugins that manage plugins to load in presentation.

Current implements

revealjs_script_plugins is defined as list of definition dict.

revealjs_script_plugins = [
    {
        "src": "revealjs/plugin/highlight/highlight.js",
        "name": "RevealHighlight",
    },
]

This has risk to conflict names.

revealjs_script_plugins = [
    # Which is work ?
    {
        "src": "revealjs/plugin/highlight/highlight.js",
        "name": "RevealHighlight",
    },
    {
        "src": "revealjs/plugin/highlight/highlight2.js",
        "name": "RevealHighlight",
    },
]

Approach

This configuration may be good defined as dict with name as key.

revealjs_script_plugins = {
"RevealHighlight": {
"src": "revealjs/plugin/highlight/highlight.js",
}
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions