3 ms·
might just use pyxl4, by dropbox or Guido himself. https://github.com/pyxl4/pyxl4 https://github.com/pyxl4/pyxl4 example: # coding: pyxl from some_module im
by est 3y ago
might just use pyxl4, by dropbox or Guido himself.
https://github.com/pyxl4/pyxl4 https://github.com/pyxl4/pyxl4
example:
# coding: pyxl
from some_module import x_user_badge
user = User.get(some_user_id)
content = <div>Any arbitrary content...</div>
print <user_badge user="{user}">{content}</user_badge>
- palencharizard 3y agoThis is what's missing from the reactive-python project IMO. A huge draw for React is that it _extends_ the JavaScript Syntax. If you still had to compose your React components with a bunch of nested `React.createElement('Component')` calls (instead of `<Component />`) it wouldn't be nearly as useful.