Metadata-Version: 2.1
Name: wwidget
Version: 0.0.7
Summary: A package to fast embed HTML snippets to any websites or applications
Home-page: https://github.com/chheunpheara/wwidget
Author: Phearaeun
Author-email: siphearaeun@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

### 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


