Server IP : 192.158.238.246 / Your IP : 3.145.38.251 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE 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'