| 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 : /usr/lib/python3/dist-packages/pystache/__pycache__/ |
Upload File : |
o
r|aj � @ s8 d Z ddlmZ ddlmZ dd� ZG dd� de�ZdS ) z3
Defines a class responsible for rendering logic.
� )� is_string)�parsec C s
| � |�S )z?
Find and return a name from a ContextStack instance.
)�get)�stack�name� r �7/usr/lib/python3/dist-packages/pystache/renderengine.py�context_get s
r c @ sH e Zd ZdZ d
dd�Zdd� Zdd� Zdd d
�Zddd�ZdS )�RenderEnginea�
Provides a render() method.
This class is meant only for internal use.
As a rule, the code in this class operates on unicode strings where
possible rather than, say, strings of type str or markupsafe.Markup.
This means that strings obtained from "external" sources like partials
and variable tag values are immediately converted to unicode (or
escaped and converted to unicode) before being operated on further.
This makes maintaining, reasoning about, and testing the correctness
of the code much simpler. In particular, it keeps the implementation
of this class independent of the API details of one (or possibly more)
unicode subclasses (e.g. markupsafe.Markup).
Nc C s"