Example that integrates templates and authentication.