V?q d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ G d d Z G d d e Z G d d Z e ZdZ G d d Z G d d Z G d d Z G d d Z G d de Z G d de Zd Zd Zd Zd Zd Zd Zd Zd(d Zd)d"Zd# Zd$ Zd% Zd*d&Z d' Z!dS )+zdprovides runtime services for templates, including Context, Namespace, and various helper functions. N)compat) exceptions)utilc e Zd ZdZd Zd Zed Zed Zd Z d Z d Zd Zd Z d Zd Zd ZddZd Zd Zd Zd Zd ZdS )ContextzProvides runtime namespace, output buffer, and various callstacks for templates. See :ref:`runtime_toplevel` for detail on the usage of :class:`.Context`. c |g| _ || _ | | _ d | _ d | _ i | _ t j t | | j d<