Materailzie web components for enaml-web
Project description
# Materialize
Materialize web components for enaml web.
### Installing
Install with pip
`pip install materialize-ui`
### Usage
Simply have your page/templates extend the base `MaterializePage` as follows.
```python
from web.components.api import *
from web.core.api import Block
from materialize.page import MaterializePage
enamldef Page(MaterializePage):
stylesheets = [
'/static/custom.css',
]
scripts = [
'/static/custom.js'
]
Block:
block = parent.header
H2:
text = "Page header"
Block:
block = parent.content
P:
text = "Content..."
Block:
block = parent.footer
Div:
text = "Page footer"
```
See [enaml-web](https://github.com/codelv/enaml-web) for more info.
Materialize web components for enaml web.
### Installing
Install with pip
`pip install materialize-ui`
### Usage
Simply have your page/templates extend the base `MaterializePage` as follows.
```python
from web.components.api import *
from web.core.api import Block
from materialize.page import MaterializePage
enamldef Page(MaterializePage):
stylesheets = [
'/static/custom.css',
]
scripts = [
'/static/custom.js'
]
Block:
block = parent.header
H2:
text = "Page header"
Block:
block = parent.content
P:
text = "Content..."
Block:
block = parent.footer
Div:
text = "Page footer"
```
See [enaml-web](https://github.com/codelv/enaml-web) for more info.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for materialize_ui-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71fce0b034076648131be8d13ae099f0f787d6f0232427647e3f365a5c79360e |
|
MD5 | 7ea03ead804e88e39d890eaa5cdbbff7 |
|
BLAKE2b-256 | 3ba9de5998fc7c256313dab1ca912d501819b923b33a07c4cff407c646a89f3d |