Re: please help me In template toolkit module

veeru reddy <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CA+JyuYVwyxTYUz2rDF1X=+xaY0V1eeX8=UiuCNhNRt16NLbGfw@mail.gmail.com>
Hi,
just i added one more for loop in my second for loop like this


[% FOREACH st IN university %]
[% st.name %]
[%st.location%]
studentdata:
[% FOREACH student IN st.branch.electronics.student %]
Component type: [%+ student.name +%][%+ student.number +%]
        [% FOREACH add IN studentaddress.adress %]
       [% IF adress.name==student.name && adress.number ==student.number %]
       [% adress.address %] (printing address)
 [% END %]
 [% END %]
       [% FOREACH semester IN student.semester %]
   [%+ semester.number +%]
   [%+ semester.subjects +%]
   [%+  semester.rank +%]
     [% END %]
 [% END %]
[% END %]

same for subjects also its working.

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.