3 ms·
Show HN: Palestine – JavaScript-like DOM manipulation in Python
from palestine import Document, Html, Body, Div, Text
doc = Document()
html = Html()
body = Body()
doc.append_child(html)
html.append_child(body)
page = Div(class_="container")
page.append_child(Text("Hello from Palestine"))
body.append_child(page)
print(doc)
https://github.com/u84u/palestine https://github.com/u84u/palestine
- ronak_parmar 25d agoCan we create canvas randered games using this?