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.
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.
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!
from temptacious.base import main
# try it out yourself!!
main()
Temptacious is an open-source project built by Williams Samuel. Contributions are welcome and encouraged!
Temptacious is released under the MIT License. Feel free to use it in your own projects or modify it as needed. 🤗