You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Simon Moser <si...@gmail.com> on 2006/05/09 18:09:13 UTC

Current Line Number in Template

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