![]() ![]() Here is the command to install using pip package manager – On Windows - py -m pip install jinja2 On Linux - python3 -m pip install jinja2 Setting up the Project Once Python3 is installed, any python package manager can be used to install Jinja2. So, one needs to have Python3 and Jinja2 installed in order to work out the examples in this article. ![]() We will work with Python3 to render Jinja templates. In special cases, like working with web Frameworks like Flask or Django, we can use “.html” extension which provides additional benefits in that environment like html escaping. But it is recommended to use “.jinja” extension as this would be helpful to recognize the files and if you are using IDEs (Integrated development Environments) this may help them recognize that it is a Jinja file. The templates need not have any specific extension or any extension at all. The rendering engine takes the data and inserts it into the template as defined in it to produce the output text.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |