Skip to content

Provide a special <widget>-Tag on upper-level HTML templates #58

@phorward

Description

@phorward

A special <widget>-Tag could be used to identify the current html5.Widget-subclass.

class MyText(html5.Span):
    def __init__(self):
        super().__init__(
            """
            <widget class="big" title="Hahaha">
                Hello My Text
            </widget>
            """

would result in

<span class="big" title="Hahaha">
    Hello My Text
</span>

The special <widget>-Tag should only be allowed at top-level of the Template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions