OwlCyberSecurity - MANAGER
Edit File: library.cpython-39.pyc
a ���e4 � @ s� d dl mZ d dlmZ d dlmZmZ d dlmZ d dl m Z ddlmZm Z mZ ddlmZ G d d � d e�ZG dd� d�ZG d d� de�ZG dd� de�ZG dd� de�Zdd� Zdd� ZdS )� )�wraps)� import_module)�getfullargspec�unwrap)�conditional_escape)�is_iterable� )�Node�Template�token_kwargs)�TemplateSyntaxErrorc @ s e Zd ZdS )�InvalidTemplateLibraryN)�__name__� __module__�__qualname__� r r �X/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/django/template/library.pyr s r c @ sP e Zd ZdZdd� Zddd�Zdd� Zdd d �Zdd� Zdd d�Z ddd�Z dS )�Librarya A class for registering template tags and filters. Compiled filter and template tag functions are stored in the filters and tags attributes. The filter, simple_tag, and inclusion_tag methods provide a convenient way to register callables as tags. c C s i | _ i | _d S �N)�filters�tags)�selfr r r �__init__ s zLibrary.__init__Nc s~ � d u r|d u r�j S � d urL|d u rLt� �r8�� � �S � �fdd�}|S n.� d urj|d urj|�j� <