subsitute.pl templating example