==============================
A simple HTML templating library that uses a DSL
mini-language. I tried to design it to be similar in feel
to Teacup/CoffeeKup (https://github.com/goodeggs/teacup). I
also took inspiration from jamescasbon's template.py script
(https://gist.github.com/jamescasbon/1461441).
Also includes the md() function for embedding markdown, and an option
for outputting prettified HTML.
Example usage::
from teacup import *
with html:
with head:
pass
with body:
with p:
md("This is a **test!**")
with p({"class":"test"}, id="testme"):
text("Another test")
a("Click here", href="https://google.com")
print(render())
The python "with" keyword is used to nest HTML tags.
Metadata
Release files for teacup 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teacup-0.9.tar.gz | 4.3 kB | Without provenance | Details for teacup-0.9.tar.gz |
Release files / teacup-0.9.tar.gz
| Download URL | teacup-0.9.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4589c765af338fd5753ce48125ce2a8da1fb727715a1c9ad20b63657cea17149
|
|
BLAKE2b-256 checksum How to use checksums |
44752d9089e969664f8cac73d496b2f91028214c63f9acedfcd16bb0a57fa0f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for teacup 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.