Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frmdstryr/materialize
Materialize components for enaml-web
https://github.com/frmdstryr/materialize
python
Last synced: 3 months ago
JSON representation
Materialize components for enaml-web
- Host: GitHub
- URL: https://github.com/frmdstryr/materialize
- Owner: frmdstryr
- Created: 2018-06-20T20:23:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-28T19:08:04.000Z (over 1 year ago)
- Last Synced: 2024-09-14T18:03:40.496Z (4 months ago)
- Topics: python
- Language: Python
- Size: 27.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 MaterializePageenamldef 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.