generate css/js templates into external files in staticDir