Skip to main content

A package to fast embed HTML snippets to any websites or applications

Project description

WWIDGET

This package is to fast embed html snippets to any web application

WWIDGET Usage

from wwidget.login.login import LoginWidget

tpl = LoginWidget(
    template='a_login.html',
    username={
        'required': True,
        'id': 'username'
    },
    password={
        'required': True
    },
    button={
        'value': 'Sign in'
    },
    form_attrs={}
)

tpl.output

Options

  • form_attrs: supports any attributes
  • action: if not set empty url is taken as default
  • method: if not set POST is taken as default
  • username, password: as a dictionary holding required, id, class
  • button: as a dictionary holding value, type, class, id, name, style

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wwidget-0.0.6.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

wwidget-0.0.6-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page