You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.
Allows to write html-like code right in Python, just like JSX for JavaScript:
print(<html><body>HelloWorld!</body></html>)
One caveat is that it isn't much configurable (tags start with x_, output is only HTML, custom elements must be a subclass of x_element etc). I guess if we want to use it, we'll have to fork it.
This brings another strange idea back to my mind: it would be really great if we has a Babel-like transpiler for Python. Not only just for this pyxl syntax, but also maybe for some bleeding edge features, like async def → @asyncio.coroutine decorator etc, or maybe even 3to2 translations.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/gvanrossum/pyxl3 (Python 2: https://github.com/dropbox/pyxl)
Allows to write html-like code right in Python, just like JSX for JavaScript:
One caveat is that it isn't much configurable (tags start with
x_
, output is only HTML, custom elements must be a subclass ofx_element
etc). I guess if we want to use it, we'll have to fork it.(Suggested by @vutran. Thanks!)
The text was updated successfully, but these errors were encountered: