Skip to content
Creation of HTML Bootstrap4 components using the Python library Chameleon.
Python Makefile Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
docs
src/chamelboots
tests
.appveyor.yml
.bumpversion.cfg
.cookiecutterrc
.coveragerc
.editorconfig
.gitignore
.travis.yml
AUTHORS.rst
CHANGELOG.rst
CONTRIBUTING.rst
LICENSE
MANIFEST.in
Makefile
README.rst
pyproject.toml
setup.cfg
setup.py
tox.ini

README.rst

Overview

Version v0.0.23.

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.

docs Documentation Status
tests
Travis-CI Build Status AppVeyor Build Status Requirements Status
Coverage Status
package

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

https://python-chamelboots.readthedocs.io/

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
You can’t perform that action at this time.