senny / sablon

Ruby Document Template Processor based on docx templates and Mail Merge fields.
MIT License
446 stars 128 forks source link

Merging several filled templates #139

Closed musmayo closed 5 years ago

musmayo commented 5 years ago

Hello,

I have a template for an item (a product), it's basically a table with the product's data, is there a way i can generate a docx with several products? is merging documents supported, or something similar?

stadelmanma commented 5 years ago

Hi @musmayo,

That type of usage isn't supported since merging docx files is tricky but depending on what you're trying to accomplish a loop might be sufficient if you are simply building rows of a table.