djpate / docxgen

A class that enables you to generate a docx based on a template
67 stars 27 forks source link

Template in template #6

Open bartnuman opened 11 years ago

bartnuman commented 11 years ago

Is it also possible to use templates in templates?

For example, I have a letter that consists an address header, a body content and a greeting (footer) and all 3 can be different of contents and/or layout. I want to create a letter create system where you have 1 main layout page (where the margin etc. are set) and the address can differ (a random customer or supplier/company), and body content which can be a couple different letters with some different placeholders. Is this possible?

Thanks!