G github.com Show HN: Palestine – JavaScript-like DOM manipulation in Python from palestine import Document, Html, Body, Div, Textdoc = 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 2 points u84u 2 months ago 1 comments
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