Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phorward opened this issue Aug 19, 2022 · 0 comments
Open

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

phorward opened this issue Aug 19, 2022 · 0 comments
Labels
feature New feature or request

Comments

@phorward
Copy link
Member

phorward commented Aug 19, 2022

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.

@phorward phorward added the feature New feature or request label Aug 19, 2022
@phorward phorward changed the title Provide a special `<widget>´-Tag on upper-level HTML templates Provide a special <widget>-Tag on upper-level HTML templates Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant