added resolve() api entrypoint to generate the template function and a dependency tree of all jade files required