관리-도구
편집 파일: lookup.cpython-37.pyc
B �C]�1 � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ yd dl Z W n d dl Z Y nX G dd� de�ZG dd� de�Z dS ) � N)� exceptions)�util)�Templatec @ s2 e Zd ZdZdd� Zddd�Zdd� Zd d � ZdS )�TemplateCollectiona< Represent a collection of :class:`.Template` objects, identifiable via URI. A :class:`.TemplateCollection` is linked to the usage of all template tags that address other templates, such as ``<%include>``, ``<%namespace>``, and ``<%inherit>``. The ``file`` attribute of each of those tags refers to a string URI that is passed to that :class:`.Template` object's :class:`.TemplateCollection` for resolution. :class:`.TemplateCollection` is an abstract class, with the usual default implementation being :class:`.TemplateLookup`. c C s* y| � |� dS tjk r$ dS X dS )z�Return ``True`` if this :class:`.TemplateLookup` is capable of returning a :class:`.Template` object for the given ``uri``. :param uri: String URI of the template to be resolved. TFN)�get_templater �TemplateLookupException)�self�uri� r �</opt/alt/python37/lib/python3.7/site-packages/mako/lookup.py�has_template'