1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
Metadata-Version: 2.4
Name: wheezy.template
Version: 3.2.4
Summary: A lightweight template library
Author-email: Andriy Kornatskyy <andriy.kornatskyy@live.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/akornatskyy/wheezy.template
Project-URL: Source, https://github.com/akornatskyy/wheezy.template
Project-URL: Issues, https://github.com/akornatskyy/wheezy.template/issues
Keywords: html,markup,template,preprocessor
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Widget Sets
Classifier: Topic :: Text Processing :: Markup :: HTML
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: cython
Requires-Dist: Cython>=3.0; extra == "cython"
Dynamic: license-file
# wheezy.template
[](https://github.com/akornatskyy/wheezy.template/actions/workflows/tests.yml)
[](https://coveralls.io/github/akornatskyy/wheezy.template?branch=master)
[](https://wheezytemplate.readthedocs.io/en/latest/?badge=latest)
[](https://badge.fury.io/py/wheezy.template)
[wheezy.template](https://pypi.org/project/wheezy.template/) is a
[python](https://www.python.org) 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:
```txt
@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](https://github.com/akornatskyy/wheezy.template),
[examples](https://github.com/akornatskyy/wheezy.template/tree/master/demos)
and [issues](https://github.com/akornatskyy/wheezy.template/issues)
tracker are available on
[github](https://github.com/akornatskyy/wheezy.template)
- [documentation](https://wheezytemplate.readthedocs.io/en/latest/)
## Install
[wheezy.template](https://pypi.org/project/wheezy.template/) requires
[python](https://www.python.org) version 3.10+. It is independent of
operating system. You can install it from
[pypi](https://pypi.org/project/wheezy.template/) site:
```sh
pip install -U wheezy.template
```
To build from source with optional C extensions, install Cython and build
without PEP 517 isolation so the build can see your environment:
```sh
pip install -U "wheezy.template[cython]" # installs Cython
pip install -U . --no-build-isolation
```
Note: compiling extensions requires a working C compiler toolchain.
If you run into any issue or have comments, go ahead and add on
[github](https://github.com/akornatskyy/wheezy.template).
|