1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Preppy is ReportLab's templating system. It was developed in late 2000 and has

been in continual production use since then.  It is open source (BSD-license).

The key features are:

- *small*.  Preppy is a single Python module.  If you want a templating system
  'in the box', it's easy to include it in your project
- *easy to learn*.  It takes about one minute to scan all the features
- *just Python*.  We have not invented another language, and if you want to do
  something - includes, quoting, filters - you just use Python
- *compiled to bytecode*: a .prep file gets compiled to a Python function in
  a .pyc file
- *easy to debug*: preppy generates proper Python exceptions, with the correct
  line numbers for the .prep file.  You can follow tracebacks from Python
  script to Preppy template and back, through multiple includes
- *easy to type and read*.  We've been using ``{{this}}`` syntax since well
  before Django was thought of
- *8-bit safe*:  it makes no assumption that you are generating markup and does
  nothing unexpected with whitespace; you could use it to generate images or
  binary files if you wanted to.

WWW: http://preppy.readthedocs.org/en/latest/

PR:		ports/186881
Submitted by:	Kozlov Sergey <kozlov.sergey.404@gmail.com>
This commit is contained in:
Martin Wilke 2014-05-25 07:32:07 +00:00
parent b34e1634ad
commit c7c673d652
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355133
4 changed files with 44 additions and 0 deletions

View File

@ -244,6 +244,7 @@
SUBDIR += py-fonttools
SUBDIR += py-pdf
SUBDIR += py-pollyreports
SUBDIR += py-preppy
SUBDIR += py-pyscript
SUBDIR += py-relatorio
SUBDIR += py-reportlab

19
print/py-preppy/Makefile Normal file
View File

@ -0,0 +1,19 @@
# Created by: Kozlov Sergey <kozlov.sergey.404@gmail.com>
# $FreeBSD$
PORTNAME= preppy
PORTVERSION= 2.1.2
CATEGORIES= print python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kozlov.sergey.404@gmail.com
COMMENT= ReportLab's templating system
LICENSE= BSD3CLAUSE
USE_PYTHON= 2.7-3.3
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
.include <bsd.port.mk>

2
print/py-preppy/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (preppy-2.1.2.tar.gz) = 6a910c03add2bd2810ef38d2da8050154da4e8e79766e08de8407382f4507d34
SIZE (preppy-2.1.2.tar.gz) = 41065

22
print/py-preppy/pkg-descr Normal file
View File

@ -0,0 +1,22 @@
Preppy is ReportLab's templating system. It was developed in late 2000 and has
been in continual production use since then. It is open source (BSD-license).
The key features are:
- *small*. Preppy is a single Python module. If you want a templating system
'in the box', it's easy to include it in your project
- *easy to learn*. It takes about one minute to scan all the features
- *just Python*. We have not invented another language, and if you want to do
something - includes, quoting, filters - you just use Python
- *compiled to bytecode*: a .prep file gets compiled to a Python function in
a .pyc file
- *easy to debug*: preppy generates proper Python exceptions, with the correct
line numbers for the .prep file. You can follow tracebacks from Python
script to Preppy template and back, through multiple includes
- *easy to type and read*. We've been using ``{{this}}`` syntax since well
before Django was thought of
- *8-bit safe*: it makes no assumption that you are generating markup and does
nothing unexpected with whitespace; you could use it to generate images or
binary files if you wanted to.
WWW: http://preppy.readthedocs.org/en/latest/