Skip to content
Myr

Merge pull request #437 from alexwlchan/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix a few small typos in the docs

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 502050c, 972c030 · Browse files · 3 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−4 removed

  • other:+4 added−4 removed

3 files+4 added−4 removed

modified:docs/api.rst+2 added-2 removed
165 unmodified lines
166 message will be generated from `obj` and `name` automatically. The exception167 provided as `exc` is raised if something with the generated undefined168 object is done that the undefined object does not allow. The default169 exception is :exc:`UndefinedError`. If a `hint` is provided the170 `name` may be ommited.170 `name` may be omitted.171172 The most common way to create an undefined object is by providing173 a name only::174
11 unmodified lines
186187 return environment.undefined('no first item, sequence was empty') 188189 If it the `name` or `obj` is known (for example because an attribute190 was accessed) it shold be passed to the undefined object, even if190 was accessed) it should be passed to the undefined object, even if191 a custom `hint` is provided. This gives undefined objects the192 possibility to enhance the error message.193194.. autoclass:: Template
601 unmodified lines
modified:docs/faq.rst+1 added-1 removed
133 unmodified lines
134the traceback may be incomplete. There is currently no good workaround135for Jython or the AppEngine as ctypes is unavailable there and it's not136possible to use the debugsupport extension.137138If you are working in the Google Appengine development server you can138If you are working in the Google AppEngine development server you can139whitelist the ctypes module to restore the tracebacks. This however won't140work in production environments::141142 import os
43 unmodified lines
modified:docs/switching.rst+1 added-1 removed
2 unmodified lines
34.. highlight:: html+jinja56If you have used a different template engine in the past and want to switch7to Jinja2 here is a small guide that shows the basic syntatic and semantic7to Jinja2 here is a small guide that shows the basic syntactic and semantic8changes between some common, similar text template engines for Python.910Jinja111------
246 unmodified lines