Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Navbar reloads everytime #12

Open
Pancham1603 opened this issue Jul 25, 2021 · 2 comments
Open

Navbar reloads everytime #12

Pancham1603 opened this issue Jul 25, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Pancham1603
Copy link
Member

The dashboard navbar reloads everytime when you switch pages, ig only the page content should refresh

@Pancham1603 Pancham1603 added the bug Something isn't working label Jul 25, 2021
@sortedcord
Copy link
Member

Yeah this was something that I was able to fix with Django, I made navbar into a static block and used that block in all the other pages. https://github.com/sortedcord/MathMaster/blob/master/templates/base.html#L84 Here I made a base html. So it leads to faster load times. I'm not sure if you can do this with Flask tho...

@sortedcord sortedcord added enhancement New feature or request and removed bug Something isn't working labels Jul 26, 2021
@Pancham1603
Copy link
Member Author

yes yes, that's possible in jinja, we create a base and in other files we just mention {% extends base.html %} in the other files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants