PyJudge icon indicating copy to clipboard operation
PyJudge copied to clipboard

Use a more common template system

Open theSage21 opened this issue 6 years ago • 5 comments

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

theSage21 avatar May 16 '19 12:05 theSage21

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.

rohitjain00 avatar Jun 07 '19 10:06 rohitjain00

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.

theSage21 avatar Jun 07 '19 10:06 theSage21

Is there any specific reason to use Svelte?

rohitjain00 avatar Jun 07 '19 11:06 rohitjain00

  • 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 :smile:

theSage21 avatar Jun 07 '19 11:06 theSage21

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

theSage21 avatar Jun 07 '19 14:06 theSage21