WhyNotHugo / django-renderpdf

📄 Django app to render django templates as PDF files.
https://django-renderpdf.readthedocs.io/
ISC License
70 stars 7 forks source link

PDFView not rendering {% if ... %} and {% for ... %} Django template blocks #10

Closed esther-ish closed 3 years ago

esther-ish commented 3 years ago

Hello, I am using Django 2.2 and Django Rest Framework 3.11.

I am trying to use {% if foo %} and {% for bar in bars %} in my HTML file. However, I quickly noticed it does not work, that is, HTML codes that fall under the if and for block do not get rendered as PDF.

Is there a possible way to get this done? The documentation does not cover any examples using logic. Thank you

WhyNotHugo commented 3 years ago

Was the issue in hour code? I assumed you've managed to get through it, right?