Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Look into pyxl #2

Open
notpushkin opened this issue Nov 12, 2016 · 1 comment
Open

Look into pyxl #2

notpushkin opened this issue Nov 12, 2016 · 1 comment

Comments

@notpushkin
Copy link
Owner

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:

print(<html><body>Hello World!</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.

(Suggested by @vutran. Thanks!)

@notpushkin
Copy link
Owner Author

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant