There is the CGI::WML module on CPAN which also has a wml2wmlc
converter. (All WAP devices are supposed to read compressed WML
so bandwidth is conserved.) This will allow you to preconvert
the files. Also there is an html2wml converter under development
as part of the CGI::WML effort.