[rt-users] Subroutines in template code?

Sven Sternberger sven.sternberger at desy.de
Fri Aug 27 03:25:04 EDT 2004


Hello!

 >> could i define a sub and how i have to call it?
 >
 >
 > Could you please share small part of teplate that will show as what 
you try to do.



Here comes the template (this don't work)
 >>
{
sub my_func {
   return "Hello World";
}
}

===Create-Ticket: my_template_1
Subject: A template with a sub call!
Content: { my_func(); }

===Create-Ticket: my_template_2
Subject: A second template with a sub call!
Content: { my_func(); }
<<

hope this is understandable!

bye and thanx!



More information about the rt-users mailing list