Refactoring HTML static files into templates.