Add support for ejs. Add tests.