Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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