KingWilliamsGPT / temptacious

Lightweight template engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cover

Temptacious

Temptacious is a lightweight template engine inspired by the Django template engine. It's designed to be easy to use, flexible, and fast. Although it's still in its early stages, it's already quite powerful and can be used to generate dynamic HTML, XML, and other types of documents.

Features

Some of the key features of Temptacious include:

  • A simple and intuitive syntax that's easy to learn and use.
  • Support for variables, loops, conditionals, and other common programming constructs.
  • Easy integration with existing Python projects.
  • Flexible and customizable, will support custom filters, tags, and extensions, eventualy.

Getting Started

To get started with Temptacious, simply install it using pip:

pip install temptacious

Once you've installed Temptacious, you can start using it in your Python projects or downloaded it here at pypi. Here's a quick example:

from temptacious import Template

template = Template("Hello, {{name}}!")
context = {'name':'World'}
result = template.render(context)
print(result)  # Output: Hello, World!

Cheet :)

from temptacious.base import main

# try it out yourself!!
main()

Contributing

Temptacious is an open-source project built by Williams Samuel. Contributions are welcome and encouraged!

License

Temptacious is released under the MIT License. Feel free to use it in your own projects or modify it as needed. 🤗

About

Lightweight template engine.

License:MIT License


Languages

Language:Python 100.0%