=====
`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)
Metadata
Release files for brick 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brick-0.0.2.tar.gz | 4.6 kB | Without provenance | Details for brick-0.0.2.tar.gz |
Release files / brick-0.0.2.tar.gz
| Download URL | brick-0.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
664c7a51219194f2ce273d7ca85dc3367c3cf9b2f99924867a706af355b098f9
|
|
BLAKE2b-256 checksum How to use checksums |
cbc7b5bc145ae95b359ed2bc27c3cb4e65b719be420919663d04cf03feff4b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for brick 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.