print template.render(the='variables', go='here')
-Using a template loader rather then passing strings to :class:`Template`
+Using a template loader rather than passing strings to :class:`Template`
or :meth:`Environment.from_string` has multiple advantages. Besides being
a lot easier to use it also enables template inheritance.
class FunctionLoader(BaseLoader):
"""A loader that is passed a function which does the loading. The
- function becomes the name of the template passed and has to return either
+ function receives the name of the template and has to return either
an unicode string with the template source, a tuple in the form ``(source,
filename, uptodatefunc)`` or `None` if the template does not exist.