I'd like to have a way for a template to process an entire chunk of data, particularly to:
- create a zip file of entire template
- create an excel file, which takes the inner contents and creates a zip file along with other meta data
Is the macro tag the only way to do this? i.e. along the lines of:
{% macro
my_contents(data)
%}
{% endmacro %}
{{ my_contents(data) | zip }}
For clarity, I think I'd prefer a syntax like this:
{% pipeline
zip
%}
... MY TEMPLATE CONTENTS ...
{% endpipeline %}
Thoughts?