I am working on implementing a print format for a dot-matrix printer using a print designer. I need to include logic in my Jinja template to render content differently based on the current page number and total number of pages.
For example, I want to achieve something like this:
{% if current_page != total_pages %}
Continue...
{% endif %}
How can I access or calculate the current_page and total_pages variables in Jinja for a custom print format?
Any help or guidance would be greatly appreciated.