Mercurial > genshi > mirror
annotate genshi/template/__init__.py @ 1029:7d4414a4a5d0 trunk
Support slash escaped of CRLF newlines (fixes #569; patch from tetsuya.morimoto@gmail.com).
author | hodgestar |
---|---|
date | Wed, 19 Mar 2014 13:40:47 +0000 |
parents | 1da8de3e5e51 |
children | 36089a8780c9 |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 # | |
408 | 3 # Copyright (C) 2006-2007 Edgewall Software |
1 | 4 # All rights reserved. |
5 # | |
6 # This software is licensed as described in the file COPYING, which | |
7 # you should have received as part of this distribution. The terms | |
230 | 8 # are also available at http://genshi.edgewall.org/wiki/License. |
1 | 9 # |
10 # This software consists of voluntary contributions made by many | |
11 # individuals. For the exact contribution history, see the revision | |
230 | 12 # history and logs, available at http://genshi.edgewall.org/log/. |
1 | 13 |
82 | 14 """Implementation of the template engine.""" |
1 | 15 |
400
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
336
diff
changeset
|
16 from genshi.template.base import Context, Template, TemplateError, \ |
336
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
335
diff
changeset
|
17 TemplateRuntimeError, TemplateSyntaxError, \ |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
335
diff
changeset
|
18 BadDirectiveError |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
335
diff
changeset
|
19 from genshi.template.loader import TemplateLoader, TemplateNotFound |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
335
diff
changeset
|
20 from genshi.template.markup import MarkupTemplate |
592
1da8de3e5e51
Add a new syntax for text templates, which is available alongside the old syntax for now. The new syntax is more poweful and flexible, using Django-style directive notation.
cmlenz
parents:
425
diff
changeset
|
21 from genshi.template.text import TextTemplate, OldTextTemplate, NewTextTemplate |
425
073640758a42
Try to use proper reStructuredText for docstrings throughout.
cmlenz
parents:
408
diff
changeset
|
22 |
073640758a42
Try to use proper reStructuredText for docstrings throughout.
cmlenz
parents:
408
diff
changeset
|
23 __docformat__ = 'restructuredtext en' |