Templates as erb files. Fixes for nginx.