Template Toolkit Framework
<% FOREACH person = people -%>
dn: uid=<% person.uid %>,ou=Staff,ou=People,dc=example,dc=com
objectClass: person
objectClass: inetOrgPerson
objectClass: evolutionPerson
cn: <% person.first_name %> <% person.surname %>
uid: <% person.uid %>
sn: <% person.surname %>
givenName: <% person.first_name %>
mail: <% person.email %>
organizationName: Example Corp
<% IF person.ddi %>telephoneNumber: <% person.ddi %>
<% END -%>
<% IF person.mobile %>mobileTelephoneNumber: <% person.mobile %>
<% END -%>
<% END %>