| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/mako/__pycache__/ |
Upload File : |
o
�p�^�1 � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ zd dl Z W n d dl
Z Y 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( z| � |� W dS tjy Y dS w )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.
TF)�get_templater �TemplateLookupException)�self�uri� r
�-/usr/lib/python3/dist-packages/mako/lookup.py�has_template'