Added publicDir method to allow partials to define resources in the public directory