Port tempaltes to ejs engine.