A lightweight template library
Project description
wheezy.template
wheezy.template is a python package written in pure Python code. It is a lightweight template library. The design goals achived:
- Compact, Expressive, Clean: Minimizes the number of keystrokes required to build a template. Enables fast and well read coding. You do not need to explicitly denote statement blocks within HTML (unlike other template systems), the parser is smart enough to understand your code. This enables a compact and expressive syntax which is really clean and just pleasure to type.
- Intuitive, No time to Learn: Basic Python programming skills plus HTML markup. You are productive just from start. Use full power of Python with minimal markup required to denote python statements.
- Do Not Repeat Yourself: Master layout templates for inheritance; include and import directives for maximum reuse.
- Blazingly Fast: Maximum rendering performance: ultimate speed and context preprocessor features.
Simple template:
@require(user, items)
Welcome, @user.name!
@if items:
@for i in items:
@i.name: @i.price!s.
@end
@else:
No items found.
@end
It is optimized for performance, well tested and documented.
Resources:
- source code, examples and issues tracker are available on github
- documentation
Install
wheezy.template requires python version 3.9+. It is independent of operating system. You can install it from pypi site:
pip install -U wheezy.template
If you run into any issue or have comments, go ahead and add on github.
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
wheezy_template-3.2.3.tar.gz
(18.7 kB
view details)
File details
Details for the file wheezy_template-3.2.3.tar.gz
.
File metadata
- Download URL: wheezy_template-3.2.3.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a494fa2cd83b25d81af270d9ee62b533f7ccf85e7f8cfbad3ed762992ba268f6 |
|
MD5 | aa474089713924e086c1cf730ee6b1be |
|
BLAKE2b-256 | f90a1324391b1cf7af8bbe87c5c7159f3ac7e9b88d88a31a69560ab9a926d935 |