Error handling in recursiveChildrenExample.
Added template ejs file support.