| OLD | NEW |
| 1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
| 2 """ | 2 """ |
| 3 jinja2.meta | 3 jinja2.meta |
| 4 ~~~~~~~~~~~ | 4 ~~~~~~~~~~~ |
| 5 | 5 |
| 6 This module implements various functions that exposes information about | 6 This module implements various functions that exposes information about |
| 7 templates that might be interesting for various kinds of applications. | 7 templates that might be interesting for various kinds of applications. |
| 8 | 8 |
| 9 :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details. | 9 :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details. |
| 10 :license: BSD, see LICENSE for more details. | 10 :license: BSD, see LICENSE for more details. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 # yield the consts that are strings. We could warn here for | 94 # yield the consts that are strings. We could warn here for |
| 95 # non string values | 95 # non string values |
| 96 elif isinstance(node, nodes.Include) and \ | 96 elif isinstance(node, nodes.Include) and \ |
| 97 isinstance(node.template.value, (tuple, list)): | 97 isinstance(node.template.value, (tuple, list)): |
| 98 for template_name in node.template.value: | 98 for template_name in node.template.value: |
| 99 if isinstance(template_name, string_types): | 99 if isinstance(template_name, string_types): |
| 100 yield template_name | 100 yield template_name |
| 101 # something else we don't care about, we could warn here | 101 # something else we don't care about, we could warn here |
| 102 else: | 102 else: |
| 103 yield None | 103 yield None |
| OLD | NEW |