put templates and public in share dir