by coolreader18 · 5y ago · 0 comments
import browser
from browser import window
document = window.get_prop('document')
document_body = document.get_prop('body')
document_body.set_prop('textContent', browser.jsstr('hi'))
[0]: https://rustpython.github.io/demo/https://github.com/brython-dev/brython
I especially like the fact that I can have the same language in the backend and the front-end and it doesn't have to be JS, which I hate with passion.