def get_github_url(app, view, path):
    """A function to generate github url based on __app__, __view__,
    and __path__ inputs.
    """
    return "https://github.com/{project}/{view}/{branch}/{path}".format(
        project=app.config.edit_on_github_project,
        view=view,
        branch=app.config.edit_on_github_branch,
        path=path,
    )