Hacker News new | ask | show | jobs
by est 1114 days ago
might just use pyxl4, by dropbox or Guido himself.

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>

1 comments

This 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.