Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A lightweight template library

Project Description

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:

Install

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.

Release History

Release History

This version
History Node

0.1.167

History Node

0.1.165

History Node

0.1.161

History Node

0.1.160

History Node

0.1.159

History Node

0.1.155

History Node

0.1.151

History Node

0.1.149

History Node

0.1.141

History Node

0.1.135

History Node

0.1.132

History Node

0.1.130

History Node

0.1.125

History Node

0.1.112

History Node

0.1.111

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
wheezy.template-0.1.167.tar.gz (15.8 kB) Copy SHA256 Checksum SHA256 Source May 11, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting