~ubuntu-branches/debian/stretch/electrum/stretch

« back to all changes in this revision

Viewing changes to gui/kivy/tools/.buildozer/android/platform/python-for-android/dist/kivy/buildlib/jinja2.egg/jinja2/__init__.py

  • Committer: Package Import Robot
  • Author(s): Tristan Seligmann
  • Date: 2016-04-04 03:02:39 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20160404030239-0szgkio8yryjv7c9
Tags: 2.6.3-1
* New upstream release.
  - Drop backported install-wizard-connect.patch.
* Add Suggests: python-zbar and update the installation hint to suggest
  apt-get instead of pip (closes: #819517).
* Bump Standards-Version to 3.9.7 (no changes).
* Update Vcs-* links.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
    jinja2
 
4
    ~~~~~~
 
5
 
 
6
    Jinja2 is a template engine written in pure Python.  It provides a
 
7
    Django inspired non-XML syntax but supports inline expressions and
 
8
    an optional sandboxed environment.
 
9
 
 
10
    Nutshell
 
11
    --------
 
12
 
 
13
    Here a small example of a Jinja2 template::
 
14
 
 
15
        {% extends 'base.html' %}
 
16
        {% block title %}Memberlist{% endblock %}
 
17
        {% block content %}
 
18
          <ul>
 
19
          {% for user in users %}
 
20
            <li><a href="{{ user.url }}">{{ user.username }}</a></li>
 
21
          {% endfor %}
 
22
          </ul>
 
23
        {% endblock %}
 
24
 
 
25
 
 
26
    :copyright: (c) 2010 by the Jinja Team.
 
27
    :license: BSD, see LICENSE for more details.
 
28
"""
 
29
__docformat__ = 'restructuredtext en'
 
30
__version__ = '2.7.2'
 
31
 
 
32
# high level interface
 
33
from jinja2.environment import Environment, Template
 
34
 
 
35
# loaders
 
36
from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \
 
37
     DictLoader, FunctionLoader, PrefixLoader, ChoiceLoader, \
 
38
     ModuleLoader
 
39
 
 
40
# bytecode caches
 
41
from jinja2.bccache import BytecodeCache, FileSystemBytecodeCache, \
 
42
     MemcachedBytecodeCache
 
43
 
 
44
# undefined types
 
45
from jinja2.runtime import Undefined, DebugUndefined, StrictUndefined
 
46
 
 
47
# exceptions
 
48
from jinja2.exceptions import TemplateError, UndefinedError, \
 
49
     TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \
 
50
     TemplateAssertionError
 
51
 
 
52
# decorators and public utilities
 
53
from jinja2.filters import environmentfilter, contextfilter, \
 
54
     evalcontextfilter
 
55
from jinja2.utils import Markup, escape, clear_caches, \
 
56
     environmentfunction, evalcontextfunction, contextfunction, \
 
57
     is_undefined
 
58
 
 
59
__all__ = [
 
60
    'Environment', 'Template', 'BaseLoader', 'FileSystemLoader',
 
61
    'PackageLoader', 'DictLoader', 'FunctionLoader', 'PrefixLoader',
 
62
    'ChoiceLoader', 'BytecodeCache', 'FileSystemBytecodeCache',
 
63
    'MemcachedBytecodeCache', 'Undefined', 'DebugUndefined',
 
64
    'StrictUndefined', 'TemplateError', 'UndefinedError', 'TemplateNotFound',
 
65
    'TemplatesNotFound', 'TemplateSyntaxError', 'TemplateAssertionError',
 
66
    'ModuleLoader', 'environmentfilter', 'contextfilter', 'Markup', 'escape',
 
67
    'environmentfunction', 'contextfunction', 'clear_caches', 'is_undefined',
 
68
    'evalcontextfilter', 'evalcontextfunction'
 
69
]