Added support for ejs templates