Now works as express render middleware