Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

error in template toolkit process.

by veerubiji (Sexton)
on Oct 31, 2011 at 14:14 UTC ( #934886=perlquestion: print w/replies, xml ) Need Help??
veerubiji has asked for the wisdom of the Perl Monks concerning the following question:

hi, I tried to get data from my hash using template toolkit but i am getting error like this

[% FOREACH st = university %] [% st.name %] [% st.location %] [% FOREACH section = st.branch.electronics.section %] branch student: [% section.name %] [% section.number %] [% section.semister %] [% section.subjects %] [% section.rank %] [% END %] [% END %]

I am getting error like this "Template process failed : File error -parser error input file handle line 51: Unexpected token(END) %END%" like this but I used correct syntax and every thing, can you tel how to overcome this error

Replies are listed 'Best First'.
Re: error in template toolkit process.
by Anonymous Monk on Oct 31, 2011 at 14:24 UTC

    but I used correct syntax and every thing, can you tel how to overcome this error

    Remove the extra [% END %] from your template

    Also, you're supposed to short code that produces, not something unrelated.

    How do I post a question effectively?

      The original posting , before it was updated

      hi, I tried to get data from my hash using template toolkit but i am getting error like this

      [% FOREACH st = university %] [% st.name %] [% st.location %] [% FOREACH section = st.branch.electronics.section %] branch student: [% section.name %] [% section.number %] [% section.semister %] [% section.subjects %] [% section.rank %] [% END %] [% END %]

      I am getting error like this "Template process failed : File error -parser error input file handle line 51: Unexpected token(END) %END%" like this but I used correct syntax and every thing, can you tel how to overcome this error

      How do I change/delete my post?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://934886]
Approved by Corion
help
Chatterbox?
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2016-12-02 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (49 votes). Check out past polls.