Placeholdr is a flexible and powerful Python template engine for dynamic substitution of values in templates.
Project description
Placeholdr - Python Template Engine
Placeholdr is a robust and versatile Python library designed to facilitate seamless integration of placeholders within templates and their subsequent substitution with dynamic values. With its intuitive syntax and extensive feature set, Placeholdr empowers developers to craft dynamic and tailor-made templates for a wide range of web applications.
Key Features
Placeholdr comes packed with a variety of features to enhance your template creation and management:
- Variable Substitution: Support for various syntaxes like
{{ variable }}
,[[ variable ]]
,< variable >
, etc. - Template Inheritance: Efficiently manage templates with
{% block block_name %}
and{% endblock %}
tags. - Includes: Easily include external templates using
{% include "path/to/template" %}
. - Control Structures: Intuitive control structures including
{% if condition %}
,{% endif %}
,{% for item in iterable %}
, and{% endfor %}
. - Filters: Apply filters within templates for variable manipulation (e.g.,
{{ variable | filter_name }}
). - Custom Tags and Macros: Extend functionality with
{% call macro_name() %}
and{% endcall %}
. - HTML Auto-Escaping: Automatically escape HTML special characters to enhance security.
Getting Started
The library is in its early stages of development (version 0.0.4), and we are continuously working to add more features and improve its functionality. We welcome feedback and contributions from the community.
For upcoming documentation, examples, and updates, keep an eye on Placeholdr's GitHub repository: https://github.com/Dcohen52/Placeholdr.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Placeholdr-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b48c7533244d4b74b65f503416b27304a8bf00e2018ab3b7329ed379503ccb |
|
MD5 | c346e47747cddce746648b94f5a10bf1 |
|
BLAKE2b-256 | 09d2da963e4ac258b4550b93543c51fa98e7709682098c1a049d92be69124f05 |