Sunday, February 10, 2019

Przemysław Kołodziejczyk: Python 3 - Template strings instead of external template engine

I don’t know about you, but there is only one thing where I use templates on the backend side. Emails. Usually, when people need to render HTML template, they install Jinja2 or other template engines. The case is that it’s not always required. If you have a template where you need to put some data, you don’t need an external template engine. When you need to do something with this data, you don’t need to do that inside a template using Jinja2 filters.

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...