Settings

Theme

Show HN: Palestine – JavaScript-like DOM manipulation in Python

github.com

2 points by u84u · 1 comment · 1 min read

Reader

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

1 thread
ronak_parmar

Can we create canvas randered games using this?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection