Afratafreeh Doc Tutorial- | Exclusive Deal |

afratafreeh batch -t invoice_template.afd -i data/batch_orders.csv -o out/invoices/ --field-mapping "customer_name=Name, amount=Total" Register a Python/JS function inside Afratafreeh. Save as plugins/currency_converter.js :

% include "header.afd" % <main>Dynamic content here...</main> % include "footer.afd" % 4.1. Batch Document Generation Generate 1000 custom invoices from a CSV: Afratafreeh Doc Tutorial-

afratafreeh render -t template.afd -d data.json -o output.pdf You should see output.pdf with the dynamic name and today's date. Chapter 3: The Afratafreeh Syntax Deep Dive This section is your cheatsheet. The language is a mixture of Jinja2 and JavaScript expressions. Variables & Filters Modify output using the pipe | operator. afratafreeh batch -t invoice_template