Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


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)
@if items:
    @for i in items: @i.price!s.
    No items found.

It is optimized for performance, well tested and documented.



wheezy.template requires python version 2.4 to 2.7 or 3.2+. It is independent of operating system. You can install it from pypi site using setuptools:

$ easy_install wheezy.template

If you are using virtualenv:

$ virtualenv env
$ env/bin/easy_install wheezy.template

If you run into any issue or have comments, go ahead and add on bitbucket.

Recent activity

Andriy Kornatskyy

Andriy Kornatskyy pushed 8 commits to akorn/wheezy.template

95473fa - Improved unit tests for file loder; added for preprocess loader and autoreload.
a6d2a8a - Warn about autoreload limitation.
4ed4dd0 - Added mock module dependency for Makefile env target.
fc8449b - Added core extension test case for empty markup when there is no line join.
915836d - Added test cases for line join; improved test coverage for core extension.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.