Skip to main content

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
materialize_ui-0.1.10-py2.py3-none-any.whl (12.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page