8000 No way to customize ``view_name`` in html templace · Issue #49 · flask-api/flask-api · GitHub
[go: up one dir, main page]

Skip to content

No way to customize view_name in html templace #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bubenkoff opened this issue Dec 9, 2015 · 1 comment
Open

No way to customize view_name in html templace #49

bubenkoff opened this issue Dec 9, 2015 · 1 comment

Comments

@bubenkoff
Copy link

Currently it's generated by simple

def convert_to_title(name):
    return name.replace('-', ' ').replace('_', ' ').replace('.', ' ').capitalize()

but for example if endpoint contains . it becomes strange

@rainulf
Copy link
Contributor
rainulf commented Jan 24, 2018

I don't think this needs customisation. My preference is to actually remove view_name, and always use endpoint relative path as header title for the browsable page (eg. /user will be the header title).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0