Serve template function now uses a template name instead of the path