init.py 426 Bytes
Newer Older
1
# encoding: utf-8
2

Kenneth Reitz committed
3
"""
4
This module contains the initialization logic called by __init__.py.
Kenneth Reitz committed
5 6 7

"""

8 9 10 11
from .template import Template
from .view import View
from .loader import Loader

Kenneth Reitz committed
12

13 14 15 16
__all__ = ['Template', 'View', 'Loader', 'render']


def render(template, context=None, **kwargs):
17 18
    """
    Return the given template string rendered using the given context.
19

20
    """
21
    return Template(template, context, **kwargs).render()