(Unfortunately the django cache interface is not compatible because it
does not support storing binary data, only unicode. You can however pass
- the underlaying cache client to the bytecode cache which is available
+ the underlying cache client to the bytecode cache which is available
as `django.core.cache.cache._client`.)
The minimal interface for the client passed to the constructor is this:
def get_spontaneous_environment(*args):
- """Return a new spontaneus environment. A spontaneus environment is an
- unnamed and unaccessable (in theory) environment that is used for
- template generated from a string and not from the file system.
+ """Return a new spontaneous environment. A spontaneous environment is an
+ unnamed and unaccessible (in theory) environment that is used for
+ templates generated from a string and not from the file system.
"""
try:
env = _spontaneous_environments.get(args)
t.filename = code.co_filename
t.blocks = namespace['blocks']
- # render function and module
+ # render function and module
t.root_render_func = namespace['root']
t._module = None