./textproc/py-jinja2, Small but fast and easy to use stand-alone template engine

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.10, Package name: py27-jinja2-2.10, Maintainer: pkgsrc-users

Jinja2 is a template engine written in pure Python. It provides a Django
inspired non-XML syntax but supports inline expressions and an optional
sandboxed environment.


Required to run:
[devel/py-setuptools] [devel/py-babel] [lang/python27] [textproc/py-markupsafe]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 34b69e5caab12ee37b9df69df9018776c008b7b8
RMD160: 552a79aaea2fa3e5b5211f89260fc8416cc28ce4
Filesize: 255.499 KB

Version history: (Expand)


CVS history: (Expand)


   2018-07-03 09:58:11 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-jinja2: fix for Python 3.7
   2017-11-09 08:52:17 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-jinja2: updated to 2.10

Version 2.10:
- Added a new extension node called OverlayScope which can be used to
  create an unoptimized scope that will look up all variables from a
  derived context.
- Added an in test that works like the in operator.  This can be used
  in combination with reject and select.
- Added previtem and nextitem to loop contexts, providing access to the
  previous/next item in the loop. If such an item does not exist, the value is
  undefined.
- Added changed(*values) to loop contexts, providing an easy way of
  checking whether a value has changed since the last iteration (or rather
  since the last call of the method)
- Added a namespace function that creates a special object which allows
  attribute assignment using the set tag.  This can be used to carry data
  across scopes, e.g. from a loop body to code that comes after the loop.
- Added a trimmed modifier to {% trans %} to strip linebreaks and
  surrounding whitespace. Also added a new policy to enable this for all
  trans blocks.
- The random filter is no longer incorrectly constant folded and will
  produce a new random choice each time the template is rendered.
- Added a unique filter.
- Added min and max filters.
- Added tests for all comparison operators: eq, ne, lt, le,
  gt, ge.
- import statement cannot end with a trailing comma.
- indent filter will not indent blank lines by default.
- Add reverse argument for dictsort filter.
- Add a NativeEnvironment that renders templates to native Python types
  instead of strings.
- Added filter support to the block set tag.
- tojson filter marks output as safe to match documented behavior.
- Resolved a bug where getting debug locals for tracebacks could
  modify template context.
- Fixed a bug where having many {% elif ... %} blocks resulted in a
  "too many levels of indentation" error.  These blocks now compile to
  native elif ..: instead of else: if ..:
   2017-05-04 22:23:31 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
PLIST fix for Python < 3.6
   2017-05-04 21:53:41 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
Fix PLIST for Python 2.x
   2017-05-04 20:11:09 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Version 2.9.6
Fixed custom context behavior in fast resolve mode
   2016-12-15 11:46:08 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
Removed testsuite from SUBST, because it does not exist anymore
   2016-12-15 11:44:33 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Version 2.8
-----------
(codename Replacement, released on July 26th 2015)

- Added `target` parameter to urlize function.
- Added support for `followsymlinks` to the file system loader.
- The truncate filter now counts the length.
- Added equalto filter that helps with select filters.
- Changed cache keys to use absolute file names if available
  instead of load names.
- Fixed loop length calculation for some iterators.
- Changed how Jinja2 enforces strings to be native strings in
  Python 2 to work when people break their default encoding.
- Added :func:`make_logging_undefined` which returns an undefined
  object that logs failures into a logger.
- If unmarshalling of cached data fails the template will be
  reloaded now.
- Implemented a block ``set`` tag.
- Default cache size was incrased to 400 from a low 50.
- Fixed ``is number`` test to accept long integers in all Python versions.
- Changed ``is number`` to accept Decimal as a number.
- Added a check for default arguments followed by non-default arguments. This
  change makes ``{% macro m(x, y=1, z) %}...{% endmacro %}`` a syntax error. The
  previous behavior for this code was broken anyway (resulting in the default
  value being applied to `y`).
- Add ability to use custom subclasses of ``jinja2.compiler.CodeGenerator`` and
  ``jinja2.runtime.Context`` by adding two new attributes to the environment
  (`code_generator_class` and `context_class`) (pull request ``404``).
- added support for context/environment/evalctx decorator functions on
  the finalize callback of the environment.
- escape query strings for urlencode properly.  Previously slashes were not
  escaped in that place.
- Add 'base' parameter to 'int' filter.
   2016-06-08 19:43:49 by Thomas Klausner | Files touched by this commit (356)
Log message:
Switch to MASTER_SITES_PYPI.