provided as `exc` is raised if something with the generated undefined
object is done that the undefined object does not allow. The default
exception is :exc:`UndefinedError`. If a `hint` is provided the
- `name` may be ommited.
+ `name` may be omitted.
The most common way to create an undefined object is by providing
a name only::
return environment.undefined('no first item, sequence was empty')
If it the `name` or `obj` is known (for example because an attribute
- was accessed) it shold be passed to the undefined object, even if
+ was accessed) it should be passed to the undefined object, even if
a custom `hint` is provided. This gives undefined objects the
possibility to enhance the error message.
for Jython or the AppEngine as ctypes is unavailable there and it's not
possible to use the debugsupport extension.
-If you are working in the Google Appengine development server you can
+If you are working in the Google AppEngine development server you can
whitelist the ctypes module to restore the tracebacks. This however won't
work in production environments::
.. highlight:: html+jinja
If you have used a different template engine in the past and want to switch
-to Jinja2 here is a small guide that shows the basic syntatic and semantic
+to Jinja2 here is a small guide that shows the basic syntactic and semantic
changes between some common, similar text template engines for Python.
Jinja1