etch  ] [  etch-m68k  ] [  lenny  ] [  sid  ]
[ Source: jinja  ]

Package: python-jinja (1.2-2)

small but fast and easy to use stand-alone template engine

Jinja provides a Django-like non-XML syntax and compiles templates into executable Python code. It's basically a combination of Django templates and Python code.

Philosophy: application logic is for the controller but don't try to make the life for the template designer too hard by giving him too few functionality.

Features:

 * Simple API.
 * Extremely lightweight.
 * The whole engine is completely sandboxed. A template designer won't be able
   to modify application data or execute dangerous code
 * You can use nearly every Python expression. Not supported are the binary
   operators and list comprehensions / generator expressions.
 * Uses the same concept for inheritance Django uses. It's very powerful
   and easy to understand.
 * Provides so called macros that allow you to put often used template
   snippets into callable blocks
 * Designer friendly. Jinja simplifies many things for a template designer.
   Loops can be used in a recursive way, filters are available to format
   values, loops know about their iteration etc.
 * Dynamic syntax. You don't like the Django block syntax? You can override
   the syntax elements on environment initialisation. It's no problem to use
   ASP/PHP/Ruby syntax, html comments for blocks etc.

Tags: Software Development: Code Generation, Python Development, Libraries, Implemented in: Python, Role: Development Library, Shared Library, Works with: Text

Other Packages Related to python-jinja

  • depends
  • recommends
  • suggests
  • dep: libc6 (>= 2.7-1) [not alpha, ia64]
    GNU C Library: Shared libraries
    also a virtual package provided by libc6-udeb
  • dep: libc6.1 (>= 2.7-1) [alpha, ia64]
    GNU C Library: Shared libraries
    also a virtual package provided by libc6.1-udeb
  • dep: python (<< 2.6)
    An interactive high-level object-oriented language (default version)
    dep: python (>= 2.4)
  • dep: python-support (>= 0.7.1)
    automated rebuilding support for Python modules

Download python-jinja

Download for all available architectures
Architecture Package Size Installed Size Files
alpha 66.4 kB460 kB [list of files]
amd64 66.1 kB452 kB [list of files]
arm 65.0 kB436 kB [list of files]
armel 65.0 kB436 kB [list of files]
hppa 66.8 kB452 kB [list of files]
i386 64.9 kB372 kB [list of files]
ia64 69.0 kB468 kB [list of files]
mips 65.3 kB452 kB [list of files]
mipsel 65.5 kB452 kB [list of files]
powerpc 71.0 kB472 kB [list of files]
s390 65.9 kB444 kB [list of files]
sparc 65.1 kB444 kB [list of files]