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

refactor js to use python templates #83

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

codegod100
Copy link
Contributor

@codegod100 codegod100 commented Jul 11, 2024

This was an experiment in refactoring the javascript from a build step to a directly calling it from the browser inside the template. This has a few benefits

  • Faster load, only the template actually requiring the javascript pulls it down
  • Easier onboarding, potentially we can remove the javascript build step entirely since it is just pulling javascript from browser

I played with the features I thought may be affected by this PR and they looked ok, feel free to respond with any feedback

Formatting changes were done by ruff which is a nice autoformatter that has 29k stars on github

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

Successfully merging this pull request may close these issues.

2 participants