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!

brick is a pure python templating system.

Project Description

Brick [![Build Status](https://secure.travis-ci.org/garindra/brick.png)](https://secure.travis-ci.org/garindra/brick.png)
=====

`brick` is a pure Python block-based templating system.

###Examples

Let's see some example:

from brick import Block
from brick.tags import *

class LikeButton(Block):

def construct(self):
b = []

with Div(class_=['like-btn']).into(b):
b += A(href="#")("Like")

return b

like_button = LikeButton()

like_button.render()
>> <div class="like-btn"><a href="#">Like</a></div>

###Installation
`brick` is an official PyPi module, so you can use it simply with pip by doing:

pip install brick

###PyPI Page
[http://pypi.python.org/pypi/brick](http://pypi.python.org/pypi/brick)

###Prerequisites
`brick` is currently well tested on Python 2.5, 2.6 and 2.7.

###Run unit tests
If you have the `nose` Python unit tester library installed and want to run the unit test suite for this library, then simply run this command:

nosetests

###Travis CI
You can track the project's CI status on Travis at : [http://travis-ci.org/#!/garindra/brick](http://travis-ci.org/#!/garindra/brick)

###License
MIT 2.0

###Inspiration
This library is heavily inspired by the public description of Quora's webnode2 found [here](http://www.quora.com/Shreyes-Seshasai/Posts/Tech-Talk-webnode2-and-LiveNode).

###Authors
- Garindra Prahandono (garindraprahandono@gmail.com)

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
brick-0.0.2.tar.gz
(4.6 kB) Copy SHA256 Hash SHA256
Source None Aug 6, 2012

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting