transform html templates to kissy module.