kraken-html
Project description
kraken_html
How to use
from kraken_html import kraken_html as m
Records
Converts a record into a HTML record, where url are transformed as a links for example
HTML record format
from kraken_html import kraken_html as m
record = {...}
html_record = m.html_record.html_record(record)
HTML record list
from kraken_html import kraken_html as m
records = [{...}, {...}]
records_list = m.html_record.to_list(records)
HTML record form
from kraken_html import kraken_html as m
record = {...}
record_form = m.html_record.to_json(record)
Pages
Pages are full website pages that includes navigation, heaters and footers.
from kraken_html import kraken_html as m
page_content = 'some content...'
webpage = m.pages.blank(page_content)
Sections
Sections are components of pages, building blocks to build full pages
Hero
Image with key benefit
record = {
"headline": "Headline 1",
"text": "Some text"
}
theme = 'dark'
page_content = m.section.hero(record, theme)
webpage = m.pages.blank(page_content)
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 Distribution
kraken-html-0.1.2.tar.gz
(21.8 kB
view hashes)
Built Distribution
Close
Hashes for kraken_html-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4292de488f4fafe9deba2d3c20ea8e8872d0d10c92acf65debace48852d578 |
|
MD5 | d8e2afbc1be256f1f89b5480c10b229d |
|
BLAKE2b-256 | 6cf132e97fe1de4236de5849076ed4eed1183c9a77f2e3605db0b52ee506cbdb |