added support for registering partials from a dir