velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Moser" <simon.mo...@gmail.com>
Subject Current Line Number in Template
Date Tue, 09 May 2006 16:09:13 GMT
Hi *!

When I generate something a want to link it to line of the template where it
was generated. So I need the current line number.

i.e.
/** link:method.vm:Line 21**/
void foo(){
  foo2();
}

The logger also knows the line number when an error occurs, is it possible
to acces this information within the template?
Anyone?

tia
simon

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message