'Initializes this object with a valid Templar() object, as
well as several dictionaries of variables representing
different scopes (in jinja2 terminology).'

def __init__(self, templar, globals, locals=None, *extras):

    self._templar = templar
    self._globals = globals
    self._extras = extras
    self._locals = dict()
    if isinstance(locals, dict):
        for (key, val) in iteritems(locals):
            if (val is not missing):
                if (key[:2] == 'l_'):
                    self._locals[key[2:]] = val
                elif (key not in ('context', 'environment', 'template')):
                    self._locals[key] = val
