Better HN
topnewbestaskshowjobs
Log inSign up

slaybear

2 karma · joined Sep 24, 2024 (2y ago) · 8 submissions

Submissions

comment 1y ago · link · parent

+1

comment 2y ago · link · parent

This is some great feedback {and actually filed as the first issue :) } https://github.com/crypto-rizzo/empyt/issues/1

Documentation + examples are definitely lacking ATM. Will be rectified in short order. To answer your question now, the goal is pretty simple: enable python to be directly used in HTML templates.

For usage with another template engine, I see it as more of a convenience / speed factor. Quickly write frontend logic in python without reaching for a new (albeit similar) syntax.

empyt can also be used standalone, in situations where people want to avoid a templating engine altogether, and just want to use python on the frontend.

with templating engine: https://github.com/crypto-rizzo/empyt/blob/master/examples/t...

without templating engine: https://github.com/crypto-rizzo/empyt/blob/master/examples/t...

comment 2y ago · link · parent

Interesting approach! Hadn't heard of Dominate before now, but reminds me of FastHTML which was making waves the other month. I gave that a whirl, but quickly realized I really like the simplicity of writing HTML without working around a DOM API.

Anyway thanks for the kind words, and let me know of any feedback you have if you do take empyt for a joy ride. Planning to have a public roadmap before EOY

4.

Show HN: Embedded Python for HTML Templates(github.com ↗)

2 points · by slaybear · 2y ago · 4 comments

comment 2y ago · link · parent

:facepalm: I had changed it from textContent to innerHTML when supporting line breaks...

Fixed!

comment 2y ago · link · parent

Yes thank you for looking! Didn't realize the websocket proxy wasn't configured. Should be up in a few minutes!

comment 2y ago · link · parent

Not familiar with this, but in general sup-chat isn't an IRC client!

8.

Show HN: Text-Only Group Chats(sup-chat.com ↗)

1 points · by slaybear · 2y ago · 6 comments