An example package. Generated with cookiecutter-pylibrary.
Project description
Version v0.0.19.
This is a proof of concept package. It came out of working with the Nikolo static site generator.
While it’s more convenient to write pages and posts with Markdown or reStructuredText, sometimes HTML is more precise, especially regarding custom Bootstrap components. The issue is that writing HTML by hand is tedious and error-prone. Template libraries do help, but they introduce their own clumsy syntax into HTML. Except at least one: Chameleon.
Then there is the issue of learning the template attribute language (TAL) in Chameleon templates.. Fortunately, TAL only has 10 statements.
This library address the issue of building validated Chameleon templates that when rendered produce validated HTML programmatically.
The specification is to easily create Chameleon templates to output HTML using strings and Python code.
See working—and constantly changing—examples at this blog post and at this blog post .
Reiterating over these posts helps me strategize ways of making the creation of HTML using Python more efficient.
Generated with cookiecutter-pylibrary.
Free software: BSD 2-Clause License
Installation
pip install chamelboots
You can also install the in-development version with
pip install https://github.com/dm-wyncode/python-chamelboots/archive/master.zip
It is still possible to install by cloning this repository, activating a virtual environment, and running the following:
python setup.py install
Documentation
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.0.0 (2019-11-05)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python-chamelboots-0.0.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99a6e946cdeebffa269dc24647d1480202551eab234576fd5b614cdc85373066 |
|
MD5 | f117067168de39108556c0ac62eaedf7 |
|
BLAKE2b-256 | 119700abe3cbd1daa7f7c90edfbf3804d899e536e8e2627ac70664bb9b403516 |
Hashes for python_chamelboots-0.0.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cd0ea3908fc34cc8084e80d62eb4f4398a65847303d8d353f0b604602340184 |
|
MD5 | 652a75fd7816692021ca74c37b1a65b1 |
|
BLAKE2b-256 | 5f640088e020e60660dcd0dff5f974036631a11365acf890be4fbdeb134b6de0 |