Skip to content

frmdstryr/materialize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

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 for more info.

About

Materialize components for enaml-web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages