I am writing a very generic TPL that will do some stuff and run another TPL. The only thing I have not figured out is how the TPL knows if it is generating HTML, JSP, etc. When I ran iwpt_compile and looked at the IPL, i noticed the only thing that has the destination file is in %iw_arg. Not certain how to reference that.The other option that I have is to read templating.cfg and parse it out. Any tips/pointers/RTFMs appreciated.Andy
<iw_perl> my $ofile = iwpt_get_ofile_name(); (my $ext = $ofile) =~ s|^.*\.||; if ($ext eq "htm" || $ext eq "html"){ # do HTML code stuff } elsif ($ext eq "jsp"){ # do JSP code stuff } ...</iw_perl>