Skip to content
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

Use a more common template system #124

Open
theSage21 opened this issue May 16, 2019 · 5 comments
Open

Use a more common template system #124

theSage21 opened this issue May 16, 2019 · 5 comments

Comments

@theSage21
Copy link
Member

While bottle provides a simple template system, almost everyone coming to this project has been already exposed to some other template system. This causes the misuse of bottle's own template system. Using import instead of rebase for example is a common mistake.

We can instead use the more common Jinja2 template system. Relevant documentation can be found in bottle's documentation

@rohitjain00
Copy link
Contributor

rohitjain00 commented Jun 7, 2019

Yes or I think we should move the entire front end on a front end based framework like angular Js and use server for sending and receiving data? I think this is more efficient than retrieving whole web pages from the server.

@theSage21
Copy link
Member Author

It's not better than the existing system in any way so far. Both approaches are equivalent. If you would like to take that approach I suggest using svelte as the UI framework.

@rohitjain00
Copy link
Contributor

Is there any specific reason to use Svelte?

@theSage21
Copy link
Member Author

  • it's smaller
  • it's cleaner while writing code
  • it's not popular so you have to actually learn it to use it instead of copy pasting from some blog 😄

@theSage21
Copy link
Member Author

I'd recommend going through https://www.youtube.com/watch?v=AdNJ3fydeao to understand how svelte might be superior to commonplace things like React/Vue/Angular. To see a simple benchmark I'd recommend this one

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

No branches or pull requests

2 participants