Skip to main content

Placeholdr is a flexible and powerful Python template engine for dynamic substitution of values in templates.

Project description

Placeholdr

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 }}).
  • HTML Auto-Escaping: Automatically escape HTML special characters to enhance security.

Contribute

The library is in its early stages of development, 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

Placeholdr-0.0.6.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

Placeholdr-0.0.6-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page