'Initialize the template engine.
`params` is a dict of configuration settings.'

def __init__(self, params):

    params = params.copy()
    self.name = params.pop('NAME')
    self.dirs = list(params.pop('DIRS'))
    self.app_dirs = bool(params.pop('APP_DIRS'))
    if params:
        raise ImproperlyConfigured('Unknown    parameters:    {}'.format(',    '.join(params)))
