| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/mako/__pycache__/ |
Upload File : |
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'